Calling a program installed as snap fails with an obscure error:
➜ htop
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
➜ visualboyadvance-m
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
Snapd relies on apparmor so in a few ubuntu bug reports the following solution was listed. Unfortunately, this only changed the type of error I was getting (even after restarting snapd):
➜ sudo apparmor_parser -r /etc/apparmor.d/*snap-confine*
➜ sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap-confine*
➜ visualboyadvance-m
cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: No such file or directory
➜ sudo systemctl restart snapd
➜ visualboyadvance-m
cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: File exists
In the end, the following solution was given on the Solus support forums:
➜ sudo usysconf run -f
[✓] Syncing filesystems success
[✓] Updating dynamic library cache success
[✓] Updating clr-boot-manager success
[✓] Registering QoL migration on next boot success
[✓] Running depmod on kernel 5.5.11-151.current success
[✓] Updating hwdb success
[✓] Updating graphical driver configuration success
[✓] Updating system users success
[✓] Updating systemd tmpfiles success
[✓] Reloading systemd configuration success
[✓] Re-executing systemd success
[✓] Compiling and Reloading AppArmor profiles success
[✓] Compiling glib-schemas success
[✓] Rebuilding font cache success
[✓] Updating mimetype database success
[✓] Updating icon theme cache: hicolor success
[✓] Updating icon theme cache: solus-sc success
[✓] Updating icon theme cache: Papirus success
[✓] Updating icon theme cache: Adwaita success
[✓] Updating icon theme cache: breeze_cursors success
[✓] Updating icon theme cache: HighContrast success
[✓] Updating icon theme cache: Papirus-Adapta-Nokto success
[✓] Updating icon theme cache: Papirus-Adapta success
[✓] Updating icon theme cache: Papirus-Dark success
[✓] Updating icon theme cache: Papirus-Light success
[✓] Updating icon theme cache: default success
[✓] Updating desktop database success
[✓] Rebuilding dconf database success
[✓] Updating GTK2 input module cache success
[✓] Updating GTK3 input module cache success
[✓] Updating manpages database success
[✓] Updating SSL certificates success
[✓] Populating Mono certificates success
[✓] Reloading udev rules success
[✓] Applying udev rules success
And indeed, I can confirm that snaps are working again.