Results 1 to 9 of 9

Thread: removing apparmor

  1. #1
    Join Date
    Oct 2006
    Location
    USA
    Beans
    20
    Distro
    Ubuntu

    removing apparmor

    so I did a sudo apt-get remove apparmor* and also update-rc.d apparmor remove, and even deleted some directories that were related to apparmor, and I am still getting a message at boot :
    chroot: cannot execute /etc/apparmor/initramfs: No such file or directory

    Where do I find this reference and get rid of it to eliminate the error?

  2. #2
    Join Date
    Aug 2008
    Location
    Washington DC
    Beans
    2,186
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: removing apparmor

    try a

    Code:
    sudo dpkg --purge apparmor

  3. #3
    Join Date
    Jul 2009
    Location
    Mentakab, Malaysia
    Beans
    1,864
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: removing apparmor

    or uninstall it from synaptic
    Keep your important files in HOSTS when ubuntu is installed with WUBI
    How to install ANYTHING in Ubuntu!
    'No PUB KEY' error? Try this!


  4. #4
    Join Date
    Nov 2009
    Beans
    Hidden!

    Re: removing apparmor

    .
    Last edited by openuniverse; January 21st, 2010 at 11:47 PM.

  5. #5
    Join Date
    Oct 2009
    Location
    Chesterfield, UK
    Beans
    319
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: removing apparmor

    i dont even know what it is....

  6. #6
    Join Date
    Oct 2006
    Location
    USA
    Beans
    20
    Distro
    Ubuntu

    Re: removing apparmor

    Ok, this is frustrating - I almost have it working - I added apparmor=0 to my grub config, and blacklist apparmor to my blacklist.conf, and a couple times it worked - during boot it said it was blacklisted and did not load. However it is back to trying to load again.

    I have the same problem with some other modules, for example the ones that begin with 'snd', I want to get rid of that can cant....

    Seems like there should be a simple way to do this...??

  7. #7
    Join Date
    Mar 2010
    Location
    Southern NH, USA
    Beans
    161
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: removing apparmor

    Quote Originally Posted by SSzretter View Post
    so I did a sudo apt-get remove apparmor* and also update-rc.d apparmor remove, and even deleted some directories that were related to apparmor, and I am still getting a message at boot :
    chroot: cannot execute /etc/apparmor/initramfs: No such file or directory

    Where do I find this reference and get rid of it to eliminate the error?
    It's because there's a script in your initrd image that is trying to 'chroot /etc/apparmor/initramfs'. The offender is /etc/initramfs-tools/scripts/init-bottom/_apparmor. To get rid of it, you have to know how to rebuild the Ubuntu kernel or edit an initrd image.

  8. #8
    Join Date
    Oct 2006
    Location
    USA
    Beans
    20
    Distro
    Ubuntu

    Re: removing apparmor

    Thanks for replying, this became less of a priority, but it is good to know what it would take.

  9. #9
    Join Date
    Mar 2007
    Location
    Pittsburgh, PA
    Beans
    75
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: removing apparmor

    If you remove it, you need to update your initramfs. I did this:

    1. created custom kernel and got rid of apparmor (optional)

    2. to remove it:
    Code:
    apt-get purge apparmor
    3. to get rid of config folder:
    Code:
    rm -rf /etc/apparmor*
    4. to not try to load removed apparmor script:
    Code:
    update-initramfs -u
    And it was all gone. In your case, you may simply need to do the update-initramfs and that's it. I'd recommend making backups before doing any of these steps!

    ~douglas
    http://weaknetlabs.com "Our Network is Weak!"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •