mysql-server 安装崩溃,无法重新安装

mysql-server 安装崩溃,无法重新安装

mysql-server我尝试在我的 Ubuntu VPS 上安装该软件包。该apt-get进程崩溃了,我不得不终止它。现在,每当我尝试再次安装它时,都会出现此错误消息:

$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  mysql-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/6,452 B of archives.
After this operation, 98.3 kB of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Selecting previously deselected package mysql-server.
(Reading database ... 36812 files and directories currently installed.)
Unpacking mysql-server (from .../mysql-server_5.1.61-0ubuntu0.11.10.1_all.deb) ...
Setting up mysql-server-5.1 (5.1.61-0ubuntu0.11.10.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up man-db (2.6.0.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libapache2-mod-php5 (5.3.6-13ubuntu3.6) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libapache2-mod-php5 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up php5-cli (5.3.6-13ubuntu3.6) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-cli (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                          dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.1; however:
  Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                          Errors were encountered while processing:
 mysql-server-5.1
 man-db
 libapache2-mod-php5
 php5-cli
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮忙,有点紧急。

答案1

运行fuser /var/cache/debconf/config.dat以查找锁定该文件的进程。(您可能必须安装 psmisc 包才能获取 fuser)。我会尝试终止该进程(但要优雅地终止,不要使用 -9)

相关内容