AppArmor is a great additional tool to secure and protect your
Debian systems. It could however be a little bit restrictive and cause unnecessary problems in some situations.
You can disable and completely remove
AppArmor from your system at the terminal.
It is not recommended to remove
AppArmor in production systems. Only remove it in development environment or desktop, whenever necessary.
$ sudo systemctl stop apparmor
apparmorfrom starting on system boot.
$ sudo systemctl disable apparmor Synchronizing state of apparmor.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable apparmor
apparmorpackage and dependencies. (optional)
$ sudo apt remove --assume-yes --purge apparmor Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: apparmor* snapd* 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. After this operation, 122 MB disk space will be freed. ##### snipped
This will also remove
snapd. Only proceed if you don't use
snapd to manage your packages. Reinstalling
snapd will also install
AppArmor as dependency.
|Ubuntu 16.04 LTS (Xenial Xerus)|
|Ubuntu 16.10 (Yakkety Yak)|
|Ubuntu 17.04 (Zesty Zapus)|
|Ubuntu 17.10 (Artful Aardvark)|
|Ubuntu 18.04 LTS (Bionic Beaver)|
|Ubuntu 18.10 (Cosmic Cuttlefish)|
|Ubuntu 19.04 (Disco Dingo)|
Comment anonymously. Login not required.