If you remove snap from Ubuntu with sudo apt purge snapd and stop there, it will come back. All it takes is the next sudo apt install firefox (or any other package that depends on snapd) and snapd is reinstalled, with Firefox as a snap inside it. The fix is one small apt pin file, and Linux Mint has shipped it since Mint 20.
A site called I Fucking Hate Snaps made the HN front page this week (179 points, 149 comments when I read it). It's a joke page with a whack-a-snap game and a few reader rants, and one of them says what everyone has seen: "Run lsblk on a fresh Ubuntu install and count the loop devices. I dare you." The comments under it are the same five-year-old argument, still going.
I'm with the haters. First the reasons, then the full removal, including the part that survives updates.
Why people hate snaps (and they're mostly right)
The best line in the thread came from jmb99: "sudo apt install firefox should not install a snap." Since 22.04, Ubuntu's firefox package has been a transitional dummy (1:1snap1-0ubuntu2 in 22.04, 1:1snap1-0ubuntu5 in 24.04) whose only job is to install the snap. chromium-browser in 24.04 is the same trick: a 48.9 kB package described as "Transitional package - chromium-browser -> chromium snap", which depends on snapd. Thunderbird got the same treatment in 24.04. You type an apt command and end up with something that isn't a deb.
That's the main gripe, but there are more:
- Updates are forced on you. snapd checks for updates 4 times a day by default. For years there was no way to stop it for good.
snap refresh --holdwith no time limit needs snapd 2.58, which was uploaded to 22.04 in January 2023. The site's first rant is about Firefox refreshing in the middle of a customer demo. In the thread, torginus describes a snap that auto-updated outside of apt on a remote customer box, nuked the SSH configs and locked them out until someone on site did a factory reset. - Loop devices pile up. Each snap revision is a SquashFS image loop-mounted under
/snap/, and/ / refresh.retainkeeps 2 revisions by default. Sodfandlsblkfill up with mounts you never asked for. - Cold starts are slow, and Canonical's own performance write-up is the best evidence. Switching the GNOME and GTK theme snaps that Firefox depends on from XZ to LZO compression cut Firefox's cold start on Kubuntu 22.04 from about 15 s to about 6 s. That's a big fix, and it also tells you a browser once needed 15 seconds to open on a desktop PC. On a Raspberry Pi 400, LZO plus a language-pack fix took the first launch from 36 s to 17 s.
- The sandbox gets in the way. Another rant on the site: "Tried to open a file from /mnt in a snapped app. Permission denied." It ends with "Your sandbox is a prison and I'm the inmate."
- There's one store. Canonical runs the only Snap Store, and self-hosting is awkward. One HN commenter left Ubuntu over offline mirrors because they had to run two repos per release.
The thread wasn't one-sided. gertrunde pointed out that you can leave snap "twiddling its thumbs in the background" and it's more lightweight than it used to be, and bsoles said Firefox is the only package problem they've ever had on Ubuntu. Fair points. I still don't want a second package manager I didn't choose, updating on its own timer.
Step 1: Remove every snap, then purge snapd
List what you have:
snap listRemove apps before the runtimes they depend on, and core/snapd last. On a typical 24.04 desktop it goes roughly like this. Your list may differ, so remove whatever snap list shows:
sudo snap remove --purge firefox
sudo snap remove --purge thunderbird
sudo snap remove --purge snap-store
sudo snap remove --purge firmware-updater
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge gnome-42-2204
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge core22
sudo snap remove --purge bare
sudo snap remove --purge snapd--purge skips the automatic snapshot snapd would otherwise save of each app's data. If a removal fails because something still depends on it, run snap list again and remove the dependent snap first.
Then remove the daemon and its leftovers:
sudo apt purge snapd
sudo apt autoremove --purge
rm -rf ~/snap
sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapdRead the list apt prints before you say yes. gertrunde's main complaint in the thread was that snapd became a dependency of the minimal metapackage, so apt may want to remove that too. On 24.04 that's ubuntu-server-minimal, which depends on snapd; ubuntu-desktop only recommends it. Removing a metapackage doesn't uninstall what it pulled in, but autoremove may then offer to, so know what you're agreeing to.
Note that on 24.04 the App Center and the Firmware Updater are both snaps. Once snapd is gone, so are they. fwupdmgr from the fwupd deb still does firmware updates from the terminal.
Step 2: Pin snapd so apt can't reinstall it
This is the step most guides leave out. Linux Mint has blocked snapd through APT since Mint 20 with a file at /etc/apt/preferences.d/nosnap.pref. Copy it:
sudo tee /etc/apt/preferences.d/nosnap.pref > /dev/null <<'EOF'
# To prevent repository packages from triggering the installation of Snap,
# this file forbids snapd from being installed by APT.
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html
Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF
sudo apt updateA negative priority means apt will never pick snapd as a candidate. Check it on your machine:
apt policy snapdYou want Candidate: (none). Now the transitional firefox, thunderbird and chromium-browser packages can't install, because their snapd dependency can't be met. Good. I'd rather apt refuse loudly than pull snapd back in behind my back.
Step 3: Install Firefox as a real .deb
Mozilla runs its own APT repository. These steps come from Mozilla's support page and their original announcement:
sudo install -d -m 0755 /etc/apt/keyrings
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
# fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); print "\n"$0"\n"}'
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/nullThen add the second pin. Ubuntu's dummy package has epoch 1: in its version, so it sorts above Mozilla's real build unless you raise Mozilla's priority:
echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla
sudo apt update && sudo apt install firefoxPrefer a PPA? The Mozilla Team PPA is still active. When I checked it had Firefox 161.0 for 24.04 and 26.04, plus Firefox ESR 140 and Thunderbird 140 ESR, which is the easiest way to get a Thunderbird deb. It needs the same kind of pin, because Launchpad itself marks Ubuntu's 1snap1 dummies as "newer":
sudo add-apt-repository ppa:mozillateam/ppa
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozillateam
sudo apt update && sudo apt install thunderbirdStep 4: Flatpak for Chromium and the rest
For some apps a sandboxed bundle is the only practical option: Chromium without the snap, Spotify, Signal and so on. I use Flatpak for those. Setup, from Flathub's Ubuntu setup page:
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepoRestart, then flatpak install flathub org.chromium.Chromium. Flathub now suggests the Bazaar app store (io.github.kolunmi.Bazaar) if you want a GUI. In the thread stratos123 called Flatpak "the closest thing there is to a non-Canonical-controlled snap", and that's how I treat it. Flatseal lets you change each app's permissions, and you decide which remotes are on the list.
Or keep snapd and hold the updates
If you need snaps for work (some vendors only ship one) but hate the surprise refreshes, snapd 2.58+ can hold them indefinitely:
sudo snap refresh --hold # all snaps, auto-refresh only
sudo snap refresh --hold firefox # one snapThat's a truce, though, and Canonical isn't going to back off. Ubuntu 26.04 LTS doubles down on snaps: snap portal permissions in GNOME Settings, snap apps in GNOME Shell search, and another seeded snap (prompting-client) for permission prompts. If you want out, use the pins above.
Quick comparison
| Format | Auto-updates | Sandbox | Loop mounts | Who runs the store |
|---|---|---|---|---|
| .deb (apt) | When you run apt or unattended-upgrades | No | No | Ubuntu, Mozilla, PPAs, anyone |
| Snap | 4×/day by default, hold since 2.58 | Yes | One per revision | Canonical only |
| Flatpak | When you run it or your software center does | Yes (portals) | No | Flathub or any remote |
| AppImage | Up to the app | No | Mounted only while running | Nobody |
My setup: debs for everything in the archive, Mozilla's repo for Firefox, Flatpak for the few proprietary desktop apps, and both pin files. Which do you actually keep on your machine: Snap, Flatpak, AppImage or plain .deb? And if you defend snaps, tell me which problem they solved for you that Flatpak didn't.
