Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Ubuntu 8.04 - Installed Mysql > Errors with Apparmor

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Author Message
Bass10



Joined: 16 Feb 2008
Posts: 2

Posted: Tue May 27, 2008 4:48 pm    Post subject: Ubuntu 8.04 - Installed Mysql > Errors with Apparmor  

I'm setting up a fresh Ubuntu 8.04 with LAMP.

My last task was installing mysql-server mysql-client.

During installation I got the following errors:
Code: 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.
Back to top  
hybinet



Joined: 02 May 2008
Posts: 52

Posted: Wed May 28, 2008 7:18 am    Post subject:  

Seems to be a problem with AppArmor. It's a program that's supposed to enhance security, but sometimes it causes obscure errors. (Not that I know much about what it does... but I've seen tutorials written by competent people where they suggest that you turn off AppArmor in Ubuntu Hardy.)

Try running the following commands:
Code: /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,
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 471
Location: Netherlands

Posted: Wed May 28, 2008 7:39 am    Post subject:  

This is not really a problem with AppArmor itself.

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.
Back to top  
Bass10



Joined: 16 Feb 2008
Posts: 2

Posted: Wed May 28, 2008 3:03 pm    Post subject:  

Thanks for the replies.

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.
Back to top  
 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Page 1 of 1