Messed up installation of mysql-server - cannot complete installation or deinstallation

Posted by Christian Engel on Ask Ubuntu See other posts from Ask Ubuntu or by Christian Engel
Published on 2013-10-21T20:38:43Z Indexed on 2013/10/21 22:04 UTC
Read the original article Hit count: 1095

Filed under:
|
|

apt-get got stuck while installing mysql-server. I don't know why but it just stopped working and never continued. I had to reboot the machine in the middle of the setup process.

Now, if I try to install or purge the mysql-server package, apt-get tries to configure mysql-server first (tells me its not installed before that) and cancels with a error message:

Sub-process /usr/bin/dpkg returned an error code(1)

apt-get also tells me that two packages have not been successfully installed or removed.

this is the complete console output:

christian@devbox:~$ sudo apt-get install mysql-server
[sudo] password for christian: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mysql-server-5.5 (5.5.32-0ubuntu7) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--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.5; however:
  Package mysql-server-5.5 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.
                                                                                                          Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
christian@devbox:~$ 

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about 13.10