Hope this is the right place. snap gives pkg mgr access to pentesting/other tools not available in apt or apt-get (i.e. john-the-ripper).
When snapd is installed with apt install snapd, the service fails to start. The root of the cause is in its dependency with apparmor. apparmor is missing crucial files in /etc/apparmor.d/tunables/. apt install --reinstall apparmor will not fix this.
Additionally, there's another conflict that prevents snapd.service from running which is the /etc/fstab file. There are incomplete/old version duplicate entries which confuse snapd.service when reading /etc/fstab.
Workaround
- Purge, remove residual files, install
apparmor and snapd
sudo apt purge apparmor snapd
sudo rm -rf /etc/apparmor.d /var/lib/snapd /snap
sudo apt install apparmor snapd
- Edit
/etc/fstab and comment out the incomplete/old duplicate entries
$cat /etc/fstab
#UUID="1199-13AB"
UUID="1199-13AB" /boot/efi vfat defaults 0 2
#UUID="26156326-02d9-4bf7-9e79-09c349625560"
UUID="26156326-02d9-4bf7-9e79-09c349625560" / btrfs subvol=@,autodefrag,compress=zstd:10 0 1
#UUID="26156326-02d9-4bf7-9e79-09c349625560"
UUID="26156326-02d9-4bf7-9e79-09c349625560" /home btrfs subvol=@home,autodefrag 0 2
Hope this is the right place.
snapgives pkg mgr access to pentesting/other tools not available inaptorapt-get(i.e. john-the-ripper).When
snapdis installed withapt install snapd, the service fails to start. The root of the cause is in its dependency withapparmor.apparmoris missing crucial files in /etc/apparmor.d/tunables/.apt install --reinstall apparmorwill not fix this.Additionally, there's another conflict that prevents
snapd.servicefrom running which is the/etc/fstabfile. There are incomplete/old version duplicate entries which confusesnapd.servicewhen reading/etc/fstab.Workaround
apparmorandsnapd/etc/fstaband comment out the incomplete/old duplicate entries