Unable to install mysql-server, apt-get stuck at "Setting up".

Bug #988801 reported by Dawid Wróbel
74
This bug affects 16 people
Affects Status Importance Assigned to Milestone
mysql-5.5 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

I was trying to install mysql-server today and it stucks at "Setting up mysql-server-5.5 (5.5.22-0ubuntu1) ...".
A quick look at syslog shows that init loops mysql start infinitely:
"Apr 26 12:52:34 mele kernel: [75108.410000] init: mysql post-start process (26701) terminated with status 1
Apr 26 12:52:36 mele kernel: [75110.880000] init: mysql main process (26751) terminated with status 1
Apr 26 12:52:36 mele kernel: [75110.900000] init: mysql main process ended, respawning"

This seems to be caused by the following error:
"Apr 26 12:35:31 mele mysqld_safe[9500]: ERROR: 1050 Table 'plugin' already exists
Apr 26 12:35:31 mele mysqld_safe[9500]: 120426 12:35:31 [ERROR] Aborting
Apr 26 12:35:31 mele mysqld_safe[9500]:
Apr 26 12:35:31 mele mysqld_safe[9500]: 120426 12:35:31 InnoDB: Starting shutdown..."

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mysql-server 5.5.22-0ubuntu1
Uname: Linux 3.0.28-android+ armv7l
ApportVersion: 2.0.1-0ubuntu5
Architecture: armel
Date: Thu Apr 26 12:36:39 2012
Logs.var.log.daemon.log:

Logs.var.log.kern.log:

MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['test', 'ib_logfile0', 'performance_schema', 'ib_logfile1', 'mysql', 'debian-5.5.flag', 'ibdata1']
PackageArchitecture: all
SourcePackage: mysql-5.5
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dawid Wróbel (dawidw) wrote :
description: updated
Revision history for this message
Sakthivel Sundaresan (sakthi-annauniv) wrote :

I am also getting similar problem. I don't how to get rid of it. Any workaround ? I am stuck with my activities.

Revision history for this message
Dawid Wróbel (dawidw) wrote :

Sakthivel, please mark at the top of the page that this bug also affects you, so it will be automatically marked as "confirmed" and prioritized.

Revision history for this message
Simon Hill (qpay-simon-44ec) wrote :

For Ubuntu 12.04 and mysql-server-5.5

My 'work-around' was to replace mysql-server-5.5.postinst in /var/lib/dpkg/infor with the file of the same name from the SOURCE distribution ( was in mysql-5.5-5.5.22/debian/ )

Then the 'apt-get install mysql-server' ran successfully....

My additional problem for the new 12.04 machine was that 'start mysql' would fail.... This turned out to be a missing 'proc' file in /etc/apparmor.d/tunables. I copied the file from a 10.04 machine to the 12.04 machine and all is well

Revision history for this message
Dawid Wróbel (dawidw) wrote :

Simon, please mark the bug as affecting you so it gets automatically the "confirmed" status and a chance to be resolved by a package upgrade.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mysql-5.5 (Ubuntu):
status: New → Confirmed
Revision history for this message
-None- (mike-nycmoma) wrote :
Download full text (4.4 KiB)

Removing apparmor package solves the problem, please fix apparmor profile:

# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-server-5.5
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-server mysql-server-5.5
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 18,2 MB of archives.
After this operation, 67,2 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.32-0ubuntu0.12.04.1 [944 kB]
Get:2 http://ru.archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-5.5 amd64 5.5.32-0ubuntu0.12.04.1 [8 284 kB]
Get:4 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-5.5 amd64 5.5.32-0ubuntu0.12.04.1 [8 818 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server all 5.5.32-0ubuntu0.12.04.1 [11,5 kB]
Fetched 18,2 MB in 4s (3 943 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libmysqlclient18.
(Reading database ... 110136 files and directories currently installed.)
Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.32-0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously unselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ...
Selecting previously unselected package mysql-client-5.5.
Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.32-0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously unselected package mysql-server-5.5.
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.32-0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.32-0ubuntu0.12.04.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libmysqlclient18 (5.5.32-0ubuntu0.12.04.1) ...
Setting up libdbd-mysql-perl (4.020-1build2) ...
Setting up mysql-client-5.5 (5.5.32-0ubuntu0.12.04.1) ...
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
Processing triggers for libc-bin ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          ldconfig deferred processing now taking ...

Read more...

Revision history for this message
Marco (bulletxt) wrote :

mike-nycmoma, you saved my life. This is a crazy bug and I was about to destroy everthing...

Revision history for this message
Donald (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85w3jabxlrqbgszpjpwcmvkbcvq9spp6z3w5j1m33k06tlsf-c04cs2xj0-a811i2i3ytqlsztthjth0svbccw8inm65tmkqp9sarr553jq53in4xm1m8wn3o4rlwaer06ogwvqwv9mrqoku2x334n7di44o65qze67n1wneepmidnuwnde1rqcbpgdf70gtqq2) wrote :

In my case, apparmor isn't even installed, so it can't be removed. Still,

  Setting up mysql-server-5.5 (5.5.60-0+deb8u1) ...

is hanging...

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

We are sorry, but it looks like this bug fell through the cracks and was forgotten. Since Ubuntu 12.04 is no longer supported, I'm going to mark this issue as "won't fix".

If it's still happening in a supported version of Ubuntu, then please reopen this bug stating the new information. Thanks.

Changed in mysql-5.5 (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.