Report this

What is the reason for this report?

mysql installation error: dpkg: error processing package mysql-server-5.5 (--configure):

Posted on July 15, 2015

Hello, when I run

sudo apt-get update
sudo apt-get install mysql-server mysql-client libmysqlclient-dev

a password input screen comes up. Regardless I choose a password or not, I get following error.

start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package 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 package 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)

I even tried

sudo apt-get dist-upgrade

but it only broke postgresql and I had to purge it. What is the problem and what should I do to install mysql?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This worked for me :-)

Well I am having the same issue I have tried your

sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean

I am getting this error

Reading package lists… Done Building dependency tree Reading state information… Done Note, selecting ‘mysqltcl’ for glob ‘mysql*’ Note, selecting ‘mysql-mmm-agent’ for glob ‘mysql*’ Note, selecting ‘mysql-workbench’ for glob ‘mysql*’ Note, selecting ‘mysql-client-5.5’ for glob ‘mysql*’ Note, selecting ‘mysql-client-5.6’ for glob ‘mysql*’ Note, selecting ‘mysql-client-5.7’ for glob ‘mysql*’ Note, selecting ‘mysql-mmm-tools’ for glob ‘mysql*’ Note, selecting ‘mysql-common-5.6’ for glob ‘mysql*’ Note, selecting ‘mysql-server-5.0’ for glob ‘mysql*’ Note, selecting ‘mysql-server-5.1’ for glob ‘mysql*’ Note, selecting ‘mysql-server-5.5’ for glob ‘mysql*’ Note, selecting ‘mysql-server-5.6’ for glob ‘mysql*’ Note, selecting ‘mysql-server-5.7’ for glob ‘mysql*’ Note, selecting ‘mysql-utilities’ for glob ‘mysql*’ Note, selecting ‘mysql-testsuite’ for glob ‘mysql*’ Note, selecting ‘mysql-mmm-common’ for glob ‘mysql*’ Note, selecting ‘mysql-server’ for glob ‘mysql*’ Note, selecting ‘mysql-client’ for glob ‘mysql*’ Note, selecting ‘mysql-sandbox’ for glob ‘mysql*’ Note, selecting ‘mysql-client-core-5.5’ for glob ‘mysql*’ Note, selecting ‘mysql-client-core-5.6’ for glob ‘mysql*’ Note, selecting ‘mysql-client-core-5.7’ for glob ‘mysql*’ Note, selecting ‘mysql-testsuite-5.5’ for glob ‘mysql*’ Note, selecting ‘mysql-testsuite-5.6’ for glob ‘mysql*’ Note, selecting ‘mysql-testsuite-5.7’ for glob ‘mysql*’ Note, selecting ‘mysql-common’ for glob ‘mysql*’ Note, selecting ‘mysql-mmm-monitor’ for glob ‘mysql*’ Note, selecting ‘mysqltuner’ for glob ‘mysql*’ Note, selecting ‘mysql-workbench-data’ for glob ‘mysql*’ Note, selecting ‘mysql-server-core-5.1’ for glob ‘mysql*’ Note, selecting ‘mysql-server-core-5.5’ for glob ‘mysql*’ Note, selecting ‘mysql-server-core-5.6’ for glob ‘mysql*’ Note, selecting ‘mysql-server-core-5.7’ for glob ‘mysql*’ Note, selecting ‘mysql-source-5.7’ for glob ‘mysql*’ Package ‘mysql-client-5.5’ is not installed, so not removed Package ‘mysql-client-5.6’ is not installed, so not removed Package ‘mysql-server-core-5.6’ is not installed, so not removed Package ‘mysql-client-core-5.5’ is not installed, so not removed Package ‘mysql-client-core-5.6’ is not installed, so not removed Note, selecting ‘mysql-common’ instead of ‘mysql-common-5.6’ Package ‘mysql-server-5.5’ is not installed, so not removed Package ‘mysql-server-5.6’ is not installed, so not removed Package ‘mysql-server-core-5.5’ is not installed, so not removed Package ‘mysql-testsuite-5.5’ is not installed, so not removed Package ‘mysql-testsuite-5.6’ is not installed, so not removed Package ‘mysql-server-5.0’ is not installed, so not removed Package ‘mysql-server-5.1’ is not installed, so not removed Package ‘mysql-server-core-5.1’ is not installed, so not removed Package ‘mysql-mmm-agent’ is not installed, so not removed Package ‘mysql-mmm-common’ is not installed, so not removed Package ‘mysql-mmm-monitor’ is not installed, so not removed Package ‘mysql-mmm-tools’ is not installed, so not removed Package ‘mysql-sandbox’ is not installed, so not removed Package ‘mysql-utilities’ is not installed, so not removed Package ‘mysql-workbench’ is not installed, so not removed Package ‘mysql-workbench-data’ is not installed, so not removed Package ‘mysqltcl’ is not installed, so not removed Package ‘mysqltuner’ is not installed, so not removed Package ‘mysql-source-5.7’ is not installed, so not removed Package ‘mysql-testsuite’ is not installed, so not removed Package ‘mysql-testsuite-5.7’ is not installed, so not removed Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: dbconfig-mysql : Depends: mysql-client but it is not going to be installed or mariadb-client but it is not going to be installed or virtual-mysql-client E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I get the same error. . No luck with above mentioned solutions :-(

dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.7; however: Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (–configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Processing triggers for libc-bin (2.23-0ubuntu5) … Processing triggers for systemd (229-4ubuntu16) … Processing triggers for ureadahead (0.100.0-19) … Errors were encountered while processing: mysql-server-5.7 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.