Ubuntu 8.04 - Installed Mysql > Errors with Apparmor
My last task was installing mysql-server mysql-client.
During installation I got the following errors:
ls: cannot access /sys/module/apparmor: No such file or directory
ls: cannot access /sys/module/apparmor: No such file or directory
ls: cannot access /sys/module/apparmor: No such file or directory
/etc/init.d/apparmor: 119: /sbin/modprobe: not found
$Loading AppArmor module: Failed.
I get the same errors when rebooting also.
Any ideas on how to fix this? I can't seem to find any similar problems while searching.
3 Replies
Try running the following commands:
/etc/init.d/apparmor stop
update-rc.d -f apparmor remove
The first line stops AppArmor and the second line prevents it from being started the next time you reboot.
Or maybe you can just apt-get remove apparmor. And reboot. (You don't really need to reboot because this isn't Windows, but just to make sure that the error doesn't appear when rebooting…)
Hope this helps,
If your Linode is running under UML, you are provided with a monolithic kernel and you cannot install kernel modules.
If your Linode is running under Xen, you can insert kernel modules but you will need to make sure that they were built against the same library versions as the Linode kernel / build them yourself using the correct libraries (not necessarily the ones in your distro) and install the module tools (/sbin/modprobe and the like).
hybinet's solution is easiest - just disable Apparmor.
Update:
It turns out that aptitude installs recommended packages automatically by default.
apparmor was a recommended package for mysql-server, so it wasn't actually needed. I removed apparmor and changed the setting in aptitude to not automatically install recommended packages.