Bug Summary
Cannot do upgrades on the ubuntu system after upgrading to Local 10.1.1
Steps to reproduce
The Debian package post-install script sets:
APPARMOR_PROFILE_TARGET='/etc/apparmor.d/local'
However, /etc/apparmor.d/local is an existing directory used for local AppArmor profile fragments. The script then executes:
cp -f "$APPARMOR_PROFILE_SOURCE" "$APPARMOR_PROFILE_TARGET"
apparmor_parser --replace --write-cache --skip-read-cache "$APPARMOR_PROFILE_TARGET"
As a result, apparmor_parser parses the directory and fails on valid fragment files such as /etc/apparmor.d/local/transmission:
AppArmor parser error for /etc/apparmor.d/local in profile /etc/apparmor.d/local/transmission at line 2:
syntax error, unexpected TOK_MODE, expecting TOK_OPEN
dpkg then leaves the “local” package unconfigured.
The target should presumably be a profile file, for example:
/etc/apparmor.d/localwp
Environment Info
Describe your environment.
- Local version: 10.1.1
- Package version: 10.1.1-20260608.3
- OS: Ubuntu 26.04