How to Fix ‘Failed to Start Load AppArmor Profiles’ on Ubuntu

AppArmor (Application Armor) provides Mandatory Access Control (MAC) security on Ubuntu, confining system daemons, container runtimes, and user applications (such as Snap packages, MySQL, and CUPS) within strict filesystem and capability boundaries. When system boot logs “Failed to start apparmor.service: Load AppArmor profiles”, security confinements fail to initialize and services such as Snapd refuse to execute.

Check Service Status and Identify Broken Profile Definitions

The AppArmor service parser halts when encountering syntax errors inside individual policy files stored in /etc/apparmor.d/.

  1. Open a terminal (Ctrl + Alt + T).
  2. Query the systemd service status:
    systemctl status apparmor.service
  3. Inspect recent system journal logs for the specific failing profile:
    sudo journalctl -u apparmor -b --no-pager | grep -i fail
  4. If the output points to a specific file (e.g. /etc/apparmor.d/usr.sbin.mysqld), that profile contains an unparseable rule.

Parse and Reload Profiles Manually via apparmor_parser

Using the manual parser command highlights exact syntax error line numbers.

  • Execute a test parse across all installed profiles:
    sudo apparmor_parser -r /etc/apparmor.d/
  • If an obsolete or corrupted third-party application profile causes the failure, move it temporarily to a disabled holding directory:
    sudo mv /etc/apparmor.d/problematic_profile /etc/apparmor.d/disable/
  • Clear cached compiled profiles:
    sudo rm -f /var/cache/apparmor/*

Reinstall AppArmor and Core Parser Packages

If core security binaries or default distribution profiles are corrupted, reinstalling the packages restores valid syntax.

  1. Reinstall AppArmor utilities via APT:
    sudo apt update && sudo apt install --reinstall apparmor apparmor-utils
  2. Restart the service:
    sudo systemctl restart apparmor.service
  3. Verify that profiles are actively loaded and enforcing security:
    sudo aa-status

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.