Hi and welcome.
"This error occurs during system upgrades (often to Ubuntu 24.04 or similar) when an updated AppArmor configuration uses syntax incompatible with the currently loaded, older, or improperly configured parser, specifically regarding variable definitions like @{HOMEDIRS} in /etc/apparmor.d/tunables/home.
Immediate Solution:
- Edit the file: Open
/etc/apparmor.d/tunables/home with root privileges (e.g., sudo nano /etc/apparmor.d/tunables/home).
- Comment out line 15: Place a
# at the beginning of the line causing the error (typically @{HOMEDIRS}=/home/ or similar).
- Reload AppArmor: Run
sudo systemctl restart apparmor to verify the fix.
If the line is necessary, ensure it is in the correct header section, or wait for the system to finalize the upgrade of the apparmor package itself.
Syntax error in /etc/apparmor.d/abstractions/lxc/container-base
2 Apr 2014 — stgraber commented. ... Not a syntax error, you just have an old apparmor. The solution is indeed to comment that stanza. We'll also add an extra two later this...

GitHub

[apparmor] Apparmor parser error ... syntax error, unexpected ...
22 Sept 2015 — The defines are read and partially processed during the preprocessing phase of the parse and it is choking on @{HOME}= being assigned inside of the profile scop...
[image]
Ubuntu Mailing Lists
Bug #2139312 “apparmor error” - Ubuntu - Launchpad Bugs
28 Jan 2026 — System reports: "apparmor.systemd[1713]: AppArmor parser error for /etc/apparmor.d in profile /etc/apparmor.d/tunables/home at line 15: syntax error, unexpected...
[image]
Launchpad Bugs
AI responses may include mistakes. Learn more"
I also found this:
" AppArmor update errors in Ubuntu 24.04 are commonly reported after upgrading from earlier versions, particularly 23.10, and are often linked to profile misconfigurations or missing profiles for applications like Chrome, Webex, and Flatpak apps.
- Common Errors :
Unable to replace [package name]. Profile doesn't exist and Profile doesn't conform to protocol indicate corrupted or missing AppArmor profiles after upgrade.
apparmor="DENIED" operation="userns_create" errors (e.g., in Chrome or Webex) suggest missing or improperly configured profiles for unprivileged user namespaces.
- Root Causes :
- Ubuntu 24.04 introduced changes to AppArmor’s handling of unprivileged user namespaces and profile loading.
- Some third-party applications (e.g., Chrome via
.deb , Webex, Flatpak apps) require updated or custom profiles that are not automatically applied during upgrades.
- The
unconfined flag was introduced to allow additional permissions (like userns ) without full confinement, but profiles must be explicitly updated to use it.
- Solutions :
- Reload AppArmor profiles : Run
sudo systemctl enable apparmor && sudo systemctl start apparmor to ensure the service is active and profiles are loaded.
- Fix missing profiles :
- For Chrome , ensure
/etc/apparmor.d/chrome exists and includes flags=(unconfined) and userns .
- For Webex , create a profile at
/etc/apparmor.d/Webex with flags=(unconfined) and reload with sudo systemctl reload apparmor .
- Remove conflicting profiles (e.g., capitalized
Webex vs. lowercase webex ).
- Reinstall AppArmor :
- Backup
/etc/apparmor.d , then run:
sudo apt purge apparmor apparmor-utils
sudo apt install apparmor apparmor-utils
- Fix Flatpak apps : A recent update to AppArmor fixed issues with Telegram, KeePassXC, and Steam Flatpaks—ensure your system is fully updated via
sudo apt update && sudo apt upgrade .
- Troubleshooting :
- Use
sudo aa-status to check which profiles are loaded.
- Use
sudo aa-logprof to update profiles from audit logs (if not broken by known bugs).
- If issues persist, temporarily disable AppArmor via
GRUB_CMDLINE_LINUX="apparmor=0" in /etc/default/grub , then sudo update-grub , but do not leave it disabled long-term due to security risks.
Note : These issues are largely resolved in later updates to Ubuntu 24.04 LTS. Ensure your system is fully updated to avoid known bugs.
AI-generated answer. Please verify critical facts."
As Ubuntu updates get fed into their releases, e.g., Ubuntu 24.04.x, Zorin will have a delay in applying updates to ensure Zorin doesn't break.
So have you installed any Flatpak software or does Pro come with a raft of Flatpak Apps? (I don't use Zorin any more). One of the first things I did do was remove flatpak and snap, and install Synaptic Package Manager then removed gnome-software (Software).