As mentioned few times in my previous posts, I was configuring my new VPS during last few weeks and I wanted to use Ubuntu minimal version installed in it mainly because of the disk space limitation and to improve performance by reducing all unnecessary services tools that you normally get with standard Ubuntu installation. Downside to this selection is you may get weird error messages and if you’re not expert on Linux systems as I am you will find difficulty in solving them. Package mysql-server-5.5 is not configured yet
is another similar error I’ve found when I try to install MySql server on the system. I went through many sites finding the solution but none of them could give me clear explanation on how to solve it. I guess reason being that most users use standard version so it is very rare that this error could be on such installation, mainly because this is more related to Ubuntu packages rather than MySql package itself.
As usual you install MySql as follows.
1 2 3 |
sudo apt-get install mysql-server |
by the end of the installation you will see following error message.
1 2 3 4 5 6 7 8 9 10 11 12 |
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Setting up mysql-server-5.5 (5.5.37-0ubuntu0.14.04.1) ... /var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found ATTENTION: An error has occured. More info is in the syslog! /var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found dpkg: error processing package mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 127 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. |
First step is to remove everything you installed related to MySql by executing following command.
1 2 3 4 5 |
sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean |
Last two commands will make sure that any dead, unused libraries and packages are removed. which is always good to keep your installations clean. Then the important bit, this error comes because your Ubuntu distribution is not upgraded recently, or at least conflicts are not resolved properly So next thing is to upgrade it. This is the dist-upgrade
man page description.
dist-upgrade In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if necessary.
1 2 3 |
sudo apt-get dist-upgrade |
1 2 3 4 5 6 7 |
$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done |
Note: if you still find the same issue try deleting everything as before and install using following command
1 2 3 |
sudo apt-get install mysql-server --fix-missing --fix-broken |
Package mysql-server-5.5 is not configured yet ...
Nov 01, 2014 @ 06:48:47
[…] As mentioned few times in my previous posts, I was configuring my new VPS during last few weeks and I wanted to use Ubuntu minimal version installed in it mainly because of the disk space limitation and to improve performance by reducing all unnecessary services tools that you normally get with… […]
Jun 22, 2015 @ 17:59:33
thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ubuntu:E: Mysql-server-5.5 Installation Error [closed] – Ubuntu Linux Questions
Oct 19, 2015 @ 09:06:17
[…] I found the solution here : tutewall.com/package-mysql-server-5-5-is-not-configured-yet […]
Nov 18, 2015 @ 12:59:02
I cannot believe I banged my head for so long and the issue was so simple. My wall and my head definitely thank you for your post.
Nov 24, 2015 @ 17:48:59
That’s Great Bob
Nov 25, 2015 @ 15:47:15
thank you mr.x,your instruction has helped me a lot, and most importantly, it worked!
Mar 18, 2016 @ 19:12:43
6 hours to find your simple amazing solution.
Thank you very much.
Aug 16, 2016 @ 23:50:21
still getting the same error message after having done the above on my vps server, please help!
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
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
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Aug 19, 2016 @ 17:36:31
Unfreakingbelievable! Thank you very much!
Reading through the comments I think you have saved so much lives.