Comment 9 for bug 444349

Revision history for this message
Rabenschwinge (schattenkeil) wrote : Re: package mysql-server-5.1 5.1.37-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Ah, yes. There is a workaround. Open /etc/default/grub in an editor. Change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
into:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=0"

reboot a normal kernel (don't pick a safe mode option). The type
sudo apt-get -f install

That should fix mysql. Now you can remove the line from your /etc/default/grub again, reboot and put mysql to complain mode. Since you utterly disable the security network this way you might wanna disable your network connection if the computer is directly connected to the Internet. Or at least shut down everything that isn't absolutely necessary.