package mysql-server-5.1 5.1.37-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #426704 reported by James Clemence
44
This bug affects 10 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Ubuntu 9.10 alpha,

Attached is the output generated by the crash handler, aptitude safe-upgrade, mysql generated this report.

Il

ProblemType: Package
Architecture: amd64
Date: Wed Sep 9 09:49:59 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['ibdata1', 'pygame', 'ib_logfile0', 'debian-5.1.flag', 'ib_logfile1', 'mysql', 'mysql_upgrade_info', 'debian-5.0.flag', 'eveningstar']
NonfreeKernelModules: fglrx
Package: mysql-server-5.1 5.1.37-1ubuntu4
ProcVersionSignature: Ubuntu 2.6.31-9.29-generic
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.37-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-9-generic x86_64

Revision history for this message
James Clemence (jvc26) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that you're using a non-standard location for your data directory (datadir option in my.cnf). However mysqld apparmor profile (in /etc/apparmor.d/usr.sbin.mysqld) hasn't been updated to allow access to the custom directory.

See https://wiki.ubuntu.com/DebuggingApparmor#Debugging%20procedure for more information on how to update mysqld apparmor profile.

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Medium
status: New → Invalid
Revision history for this message
James Clemence (jvc26) wrote :

Ah bother, my bad, it appears in the update from Jaunty I lost my settings for apparmor - cheers for pointing that out, sorry to bother you,

Il

Revision history for this message
Khairul Aizat Kamarudzzaman (fenris) wrote :

im having this problem ..

Preconfiguring packages ...
(Reading database ... 187184 files and directories currently installed.)
Preparing to replace mysql-server-5.1 5.1.37-1ubuntu4 (using .../mysql-server-5.1_5.1.37-1ubuntu4_i386.deb) ...
 * Stopping MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
 * Stopping MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.37-1ubuntu4_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
 * Stopping MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "stop" failed.
Preparing to replace mysql-server-core-5.1 5.1.37-1ubuntu4 (using .../mysql-server-core-5.1_5.1.37-1ubuntu4_i386.deb) ...
Unpacking replacement mysql-server-core-5.1 ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-5.1_5.1.37-1ubuntu4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Kamikaze321 (d-gun) wrote :

I have the same bug :/ pls fix it

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.