The issue with just uninstalling snap
/snapd
is that Ubuntu is (extremely annoyingly) migrating a bunch of their packages into snaps, which will then reinstall snapd
.
To block any packages that depend on snaps from being installed permanently:
echo "Package: snapd" | sudo tee /etc/apt/preferences.d/block-snapd
echo "Pin: release *" | sudo tee -a /etc/apt/preferences.d/block-snapd
echo "Pin-Priority: -1" | sudo tee -a /etc/apt/preferences.d/block-snapd
This effectively prevents snapd
, and any packages that depend on snapd
from getting installed:
durr@atombox:/etc/apt/preferences.d$ sudo apt install chromium-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
chromium-browser : PreDepends: snapd but it is not installable
E: Unable to correct problems, you have held broken packages.
The error about broken packages is ironic, since it's true (as snapd
and all packages that use it are garbage), but not the way apt implies it.
gnome-software-plugin-snap
– doug Dec 08 '17 at 00:35