[Bug 835715] Re: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
catraeus
duncang at catraeus.com
Sun Sep 4 01:49:24 UTC 2011
I uninstalled, reinstalled mysql. I had to remove residue from the old
install /etc/mysql and others. I re-installed, moved the directory,
configured my.cnf before ever running mysql and it works fine now.
A bump in the night, not able to reproduce. Ubuntu sent off the report
before I could stop it.
Thanks for your help.
Duncan Gray
On 09/01/2011 04:36 AM, James Page wrote:
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better.
>
> The error you experienced in 4. was due to the apparmor profile provided
> with mysql-server. By default is will only allow access to
> /var/lib/mysql so when you moved to to /srv it denied access - you can
> see this in dmesg.txt:
>
> [ 8232.324109] type=1400 audit(1314483729.470:59): apparmor="DENIED" operation="mknod" parent=1 profile="/usr/sbin/mysqld" name="/srv/mysql/caes-srv-00.lower-test" pid=30379 comm="mysqld" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
> [ 8232.324158] type=1400 audit(1314483729.470:60): apparmor="DENIED" operation="mknod" parent=1 profile="/usr/sbin/mysqld" name="/srv/mysql/caes-srv-00.lower-test" pid=30379 comm="mysqld" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
> [ 8232.326361] type=1400 audit(1314483729.470:61): apparmor="DENIED" operation="open" parent=1 profile="/usr/sbin/mysqld" name="/srv/mysql/mysql/plugin.frm" pid=30379 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=1003 ouid=1003
>
> To support this move you would need to update
> /etc/apparmor.d/usr.sbin.mysqld - use the configuration for
> /var/lib/mysql as a guide.
>
> I can't tell from the attachments what failed when you tried to
> uninstall mysql-server. It looks like its still installed by not
> configured - please could you try removing it again and attach the
> output to this bug report.
>
> Marking importance as 'Low' as I think this is related to the move of
> /var/lib/mysql and 'Incomplete' pending your response.
>
> Thanks
>
>
> ** Changed in: mysql-5.1 (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: mysql-5.1 (Ubuntu)
> Importance: Undecided => Low
>
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.1 in Ubuntu.
https://bugs.launchpad.net/bugs/835715
Title:
package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade:
subprocess installed post-installation script returned error exit
status 100
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions
More information about the Ubuntu-server-bugs
mailing list