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

share|improve this question
    
Same here. If you open up System Monitor > File Systems, it shows to remain mounted as a file system as well (after reboot). – Lonnie Best May 16 '16 at 11:30
    
I managed to disable the mounting of ubuntu-core with this command sudo systemctl disable snap-ubuntu\\x2dcore-122.mount – Thomas Aug 9 '16 at 10:25

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

share|improve this answer

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
share|improve this answer

First, you have to disable it:

sudo snap disable ubuntu-core

Then you can remove it:

sudo snap remove ubuntu-core

For further details, check comment 9 in the following bug: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1589210

share|improve this answer
1  
And for sudo snap disable core it only returns error: cannot disable "core": snap "core" cannot be disabled. – kcpr Jan 24 '17 at 18:55
    
@karel I believe that there is no relationship between apt package manager and snaps. That is why you cannot find anything. To see all snaps installed in your system you have to run snap list – kakosf Jan 26 '17 at 12:48
    
@KyriakosFytrakis That is correct. I was mistaken because I had originally installed that snap package on my system through the Ubuntu Software app which does not use apt for all of its software. – karel Jan 26 '17 at 12:52
    
@kcpr I believe you forgot something in your command. The right way is sudo snap disable ubuntu-core as I wrote above. Check the link I mentioned in my previous comment. – kakosf Jan 26 '17 at 12:59
1  
@KyriakosFytrakis I tried with 'core' intensionally as 'ubuntu-core' was not found. – kcpr Jan 26 '17 at 13:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.