Ubuntu – Ubuntu 16.04 Core OS snap won’t remove

16.04package-managementsnap

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

Best Answer

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).

Related Question