In our case we decided to spend the same effort on orchestrating for images:ubuntu/focal/cloud (which comes without snapd) rather than working around issues with snap on the thicker default image.
But the workaround above can be used, and I remember it was documented elsewhere on launchpad or maybe askubuntu. Going back on our git I can see the following (YMMV): # Remove snapd snap remove lxd snap remove core18 snap remove snapd umount /snap/ rm -rf ~/snap /snap /var/snap /var/lib/snapd apt-get purge snapd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878674 Title: apt purge snapd fails in LXD (on amd64) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1878674/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
