root@trainer:/var/lib# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
The following packages were automatically installed and are no longer required:
  mysql-client
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
2 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory

--------------------------
[SOLVE]
sudo rm /var/cache/apt/archives/lock

--------------------------
[執行]
root@trainer:/# sudo rm /var/cache/apt/archives/lock                           
root@trainer:/# sudo apt-get autoremove mysql-client                           
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  mysql-client
0 upgraded, 0 newly installed, 1 to remove and 46 not upgraded.
2 not fully installed or removed.
After this operation, 131kB disk space will be freed.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 43133 files and directories currently installed.)
Removing mysql-client ...
Setting up mysql-server-5.1 (5.1.41-3ubuntu12.6) ...
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
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 the error message indicates its a followup error from a previous failure.
                          E: Sub-process /usr/bin/dpkg returned an error code (1)
root@trainer:/#

 

arrow
arrow
    全站熱搜

    cabuchi 發表在 痞客邦 留言(0) 人氣()