zoukankan      html  css  js  c++  java
  • 安装MYSQL中断后,报错

    问题:安装MYSQL时报错,是因为之前安装时,没有网络,中断过

    root@ubuntu:/etc/init.d# sudo apt-get install mysql-server
    E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
    E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

    采取的办法是:

    root@ubuntu:~# lsof /var/lib/dpkg/lock-frontend
    lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
    Output information may be incomplete.
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    apt-get 2564 root 4uW REG 8,1 0 413925 /var/lib/dpkg/lock-frontend

    root@ubuntu:~# sudo kill -9 2564   注意‘-9’,如果不加,不会成功
    root@ubuntu:~# lsof /var/lib/dpkg/lock-frontend

    root@ubuntu:~# sudo apt-get install mysql-server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
    libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7
    mysql-client-core-5.7 mysql-server-5.7 mysql-server-core-5.7
    Suggested packages:
    libipc-sharedcache-perl mailx tinyca
    The following NEW packages will be installed:
    libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7
    mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7
    0 upgraded, 8 newly installed, 0 to remove and 238 not upgraded.
    Need to get 20.5 MB of archives.
    After this operation, 160 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y

  • 相关阅读:
    分布式系统笔记
    Paxos算法细节详解(一)
    Java G1学习笔记
    Spring Boot 的 10 个核心模块
    k8s 重点
    毕玄:阿里十年,从分布式到云时代的架构演进之路
    netty原理解析
    JVM调优总结(一):基本概念
    《快学 Go 语言》第 16 课 —— 包管理 GOPATH 和 Vendor
    Oracle 检查表空间使用情况
  • 原文地址:https://www.cnblogs.com/sike8/p/11023049.html
Copyright © 2011-2022 走看看