How to completely remove apparmor in Ubuntu

  1. Stop apparmor service
    $ sudo systemctl stop apparmor
  2. Disable apparmor from starting on system boot
    $ sudo systemctl disable apparmor
  3. Remove apparmor package and dependencies
    $ sudo apt remove apparmor apparmor-utils