Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue May 27, 2008 5:48 pm 
Offline
Newbie

Joined: Sat Feb 16, 2008 2:00 pm
Posts: 4
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.


Top
   
 Post subject:
PostPosted: Wed May 28, 2008 8:18 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
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,


Top
   
 Post subject:
PostPosted: Wed May 28, 2008 8:39 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
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.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed May 28, 2008 4:03 pm 
Offline
Newbie

Joined: Sat Feb 16, 2008 2:00 pm
Posts: 4
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group