package mysql-server-5.5 5.5.32-0ubuntu0.12.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1206136 reported by Gary Cartagena
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
mysql-5.5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I had MySQL installed at one point. the system updater is trying to update that install and I ge tthe error above.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: mysql-server-5.5 5.5.32-0ubuntu0.12.04.1
ProcVersionSignature: Ubuntu 3.2.0-49.75-generic 3.2.46
Uname: Linux 3.2.0-49-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
Date: Mon Jul 29 09:32:02 2013
DuplicateSignature: package:mysql-server-5.5:5.5.32-0ubuntu0.12.04.1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
Logs.var.log.daemon.log:

MarkForUpload: True
MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['mysql_upgrade_info', 'performance_schema', 'debian-5.5.flag', 'test', 'ib_logfile1', 'mysql', 'ib_logfile0', 'ibdata1']
SourcePackage: mysql-5.5
Title: package mysql-server-5.5 5.5.32-0ubuntu0.12.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Gary Cartagena (gary-cartagena) wrote :
tags: removed: need-duplicate-check
Revision history for this message
s k Nagesh (sknagesh) wrote :

I am also getting error as below

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 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)

How do we correct this?

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
s k Nagesh (sknagesh) wrote :

It turned out to be an apparmor issue. As I was having my mysql data in a different location during update ls -la /etc/apparmor.d/usr.sbin.mysqld was overwrriten. This resulted in error. after correcting that file every thing is back to normal.

Revision history for this message
blokkendoos (dooiegang) wrote :

After udates I performed a
sudo apt-get autoremove. This error came up.

Revision history for this message
xsuii (sherlock0he) wrote :

I got the same problem today.

Revision history for this message
Hadi Sadeqi (m-hadi-sadeqi) wrote :

I had a mysql installed on ubuntu 12.04 was working well with apache2 and php5. Last days I experienced some problem with mysql, when I tried to open my local web projects they shown error: MySQL has gone away. I saw some information about 1 bad sector in SMART in disk utility. so I uninstalled mysql and tried to install it again and this error occured. Also I see some other errors in my system may related to this error, sometimes while using apt-get I see
[1]+ Stopped sudo apt-get ... ...

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.