Ubuntu 16.04 Core OS snap won't remove
Solution 1
You can't remove the ubuntu-core snap using the snap command, no. If you really want to remove it, remove the snapd package itself and then remove the /var/lib/snapd
directory (if it says it's still in use, unmount the snap and try again).
Solution 2
In my case,I found this page at ubuntuforums.
So I simply executed this line-command:
sudo apt purge snapd ubuntu-core-launcher squashfs-tools
Related videos on Youtube
![Stanley Mitchell](https://lh6.googleusercontent.com/-mSeZoQFgJI0/AAAAAAAAAAI/AAAAAAAAAEE/rw8PozY4Ves/photo.jpg?sz=256)
Stanley Mitchell
Updated on September 18, 2022Comments
-
Stanley Mitchell almost 2 years
So I tried to install ubuntu calculator app snap package. The process went fine and after logging out and back in I managed to start the app from the menu. After that I decided to play with snap commands and removed the calculator app. The app was removed without issues but the ubuntu-core snap was still there. I tried to remove that snap with "sudo snap remove" command and got an error. After checking the snap history I've seen the status of this action was "hold".
So my question is: is this by design? Can the ubuntu-core snap be removed at all? Also is there a need to perform "apt-get autoremove/autoclean" after removing a snap. If yes then what are the commands to do that?
Thank You
-
Mike about 6 yearsThis worked for me, and automatically unmounted any current snap mounts and removed their fstab files from
/run/snapd
and/var/lib/snapd
. -
user643605 about 6 yearsDoes this also remove any preinstalled-by-default snaps, if there are any, from disk?