Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Seems this issue is common but I cannot solve it. How do I reinstall mysql-server. Every time I try, I receive this crash message.

Setting up mysql-server-5.5 (5.5.32-0ubuntu0.12.04.1) ...
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 erro                                                                                                                r from a previous failure.
                          Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

What I have tried

  1. Removing and reinstalling

    sudo apt-get purge mysql-server mysql-client mysql-common mysql-client-5.5 mysql-server-5.5 sudo apt-get autoremove sudo apt-get autoclean

    sudo rm -rf /etc/mysql

    sudo apt-get install mysql-server mysql-common mysql-client

  2. Changing the temp directory via AskUbunutu answer.

  3. Editing /etc/init/mysql.conf pre-start script to

    pre-start script #Sanity checks [ -r $HOME/my.cnf ] [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld /lib/init/apparmor-profile-load usr.sbin.mysqld LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 | awk '{ exit ($4<4096) }' end script

share|improve this question
There should be some errors in your logfiles. That should help you debug. Also, if you don't care about the data currently in mysql, you can wipe /var/lib/mysql after removing the packages. –  Dennis Kaarsemaker Sep 22 '13 at 20:07
Logfiles pointed to a corrupt InnoDB table. Removed table. –  csi Sep 23 '13 at 13:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.