So I just updated to Ubuntu 20.04 from 19.10. Doing so resulted in me being unable to start both the Snaps I manually installed (VSCode/Code and Chromium). Starting either resulted in
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks: Operation not permitted
To fix that issue I thought about a simple reinstallation of both. I removed VSCode but now I’m unable to install again getting the error:
snap install --classic code
error: cannot perform the following tasks:
- Setup snap "code" (31) security profiles (cannot setup profiles for snap "code": cannot load apparmor profiles: exit status 1
apparmor_parser output:
AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap.code.url-handler in /etc/apparmor.d/tunables/home.d/ubuntu at line 7: Found unexpected character: ''
AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap-update-ns.code in /etc/apparmor.d/tunables/home.d/ubuntu at line 7: Found unexpected character: ''
AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap.code.code in /etc/apparmor.d/tunables/home.d/ubuntu at line 7: Found unexpected character: ''
)
While unable to install VSCode again I also can’t uninstall Chromium:
snap remove --purge chromium
error: cannot perform the following tasks:
- Disconnect chromium:gtk-3-themes from gtk-common-themes:gtk-3-themes (cannot setup profiles for snap "chromium": cannot load apparmor profiles: exit status 1
apparmor_parser output:
AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap-update-ns.chromium in /etc/apparmor.d/tunables/home.d/ubuntu at line 7: Found unexpected character: ''
AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap.chromium.chromedriver in /etc/apparmor.d/tunables/home.d/ubuntu at line 7: Found unexpected character: ''
AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap.chromium.chromium in /etc/apparmor.d/tunables/home.d/ubuntu at line 7: Found unexpected character: ''
)
All those issues point to the same files but I don’t know how to fix this… would appreciate any help