I'm currently using a Ubuntu 20.04 machine with a small root volume. The default snap setup occupies ~1G space, though with only a few packages. And when I tried to remove core
from snap I got the following error.
# snap remove core18
error: cannot remove "core18": snap "core18" is not removable: snap is being used by snaps gnome-3-34-1804, gtk-common-themes and snap-store.
I understand I can work around the issue by manually remove the dependants first, but is there a one-liner solution that manages the dependencies automatically so that all snaps and snapd can be removed in one go?
core18
andsnap-store
? Are they somewhat base/root package needed by all other packages? – wlnirvana Jan 19 '21 at 03:22/var/lib/snapd
directory. – wlnirvana Jan 19 '21 at 05:27snap list
's output, which is actually a header line rather than packages. This is easy to fix, though. But what is hard is the dependencies (though there is very few) requires packages to be removed in a specific order, which that answer fails to address as well. – wlnirvana Jan 19 '21 at 08:21snapd
withapt
. I double checked the deb packaging script this time, and I believe the answer you linked will work. – wlnirvana Jan 21 '21 at 00:06