When I type:

$ mount|grep snap
/var/lib/snapd/snaps/ubuntu-core_352.snap on /snap/ubuntu-core/352 type squashfs (ro,relatime)
/var/lib/snapd/snaps/ubuntu-core_423.snap on /snap/ubuntu-core/423 type squashfs (ro,relatime)
/var/lib/snapd/snaps/ubuntu-core_122.snap on /snap/ubuntu-core/122 type squashfs (ro,relatime)

I see several old snap "mounted" and available while only the latest version is used as current in /snap/ubuntu-core

It's not a big deal but do I need older ubuntu core ? Isn't this a bug there are not deleted ? Could I simply unmount and delete the files ?

  sudo snap remove core --revision 122
  sudo snap remove core --revision 352

So, basically passing the revisions to remove in the command line.

To check the ones you've installed you have to use snap list [snap-name] --all

  • 4
    Considering current package name, up to date command looks like: sudo snap remove core --revision 122 – dess Mar 13 '17 at 15:17
  • 4
    snap list --all to list installed packages with all revisions. Check also how to remove all disabled snap packages. – Pablo A Sep 8 '18 at 18:49

This is done, so you can snap revert to rollback to an older snap version.


So I unmount the old snap:

sudo umount /snap/ubuntu-core/122

and then done some manual clean up

sudo rmdir /snap/ubuntu-core/122
sudo rm /var/lib/snapd/snaps/ubuntu-core_122.snap

The same for the other one. The sky did not fall... yet

  • In my case, the last command sudo rm /var/lib/snapd/snaps/ubuntu-core_122.snap was non necessary. – Serge Stroobandt Oct 21 '17 at 15:22
  • gist.github.com/tsbertalan/f49f892a58d2a0889358e5b6b64af028 Here's a gist that automates this for multiple mounts. It doesn't actually run its commands; just prints what you would run, which is easy enough to change. – tsbertalan Nov 24 '18 at 18:58
  • yout script removes all the snaps. This is not what you want ! – solsTiCe Nov 24 '18 at 19:19
  • sudo: unmount: command not found .... ? – Rabbit May 16 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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