How can I disable snaps in gnome-software centre?

Software center does not differentiate between snap and normal applications.

Is there anyway to change this behavior or disable the snaps in the software center altogether as I have not need for them ?

The main issue is they don't work with your theme and look horrible.


Solution 1:

Pretty simple, just remove this package, stop & restart gnome-software. (easiest thing to do is just reboot..

sudo apt purge gnome-software-plugin-snap

Then reboot & you'll not see snaps in gnome or ubuntu software app

Solution 2:

I also dislike snaps. I don't use them, and it's annoying how it's always phoning home for updates. Unfortunately in Lubuntu 16.04, lubuntu-desktop has a dependency on snapd, so it's awkward to just remove it.

You can at least permanently kill it by doing

sudo systemctl stop snapd
sudo systemctl disable snapd

Solution 3:

In addition to disable - described above - here is a very good article with instruction for cleaning up your system more elaboretly: https://www.kevin-custer.com/blog/disabling-snaps-in-ubuntu-20-04/

It basically says:

  1. do snap list
  2. snap remove all items (by dependency order)
  3. apt purge snapd
  4. clear various files at /home/*/snap, /usr/lib/snap and alike

In case of the server the only snap was lxd - something Canonical is pushing as an alternative to docker.

IMHO this a bit of a conflict of interests between Canonical and the users. Users should be able to opt-in whatever they need and not be forced to uninstall stuff the hard way..

Solution 4:

Try in the command line:

sudo apt purge snapd ubuntu-core-launcher squashfs-tools