How to Disable Snaps in Ubuntu and Remove snapd

If you want an Ubuntu system without Snap packages, the clean approach is to remove installed snaps first, remove the snapd runtime, and then optionally block the snapd Debian package from being installed again. Do not start by force-unmounting /snap or deleting system folders while snaps are still installed.

This guide applies to regular Ubuntu Desktop and Ubuntu Server installations. It is not intended for Ubuntu Core, which is built around snaps. Canonical's current Snap decommissioning documentation also recommends removing installed snaps before removing the snapd package.

Before you disable Snap

Removing snaps can also remove applications you rely on, including software that Ubuntu distributes primarily as a snap. Back up anything important first. Snap application data can live under ~/snap/ for the current user and /var/snap/ for system-wide data, as documented in Canonical's Snap data locations reference.

Also note that some Ubuntu Debian packages are designed to install a snap. For example, Ubuntu's Firefox package in current releases is a package that installs the Firefox snap rather than a traditional Firefox DEB. If you permanently block snapd, packages that depend on it may no longer install normally.

1. List every installed snap

Open Terminal and run:

snap list

The exact list varies by Ubuntu release and by what you have installed. Start with user applications, then remove supporting content or base snaps afterward. If a base snap is still required by another snap, snapd will refuse to remove it until the dependent package is gone.

Ubuntu Terminal showing the snap list command and several installed snap package names
Use snap list to see what must be removed before uninstalling snapd. Package names on your system may differ.

2. Remove installed snaps

Remove each application snap by name. Using --purge skips the automatic removal snapshot and deletes that snap's data immediately, so only use it after you have backed up anything you need. Canonical documents this behavior in its Snap removal guide.

sudo snap remove firefox --purge
sudo snap remove snap-store --purge

Those are examples; skip any name that is not installed. Repeat the command for your remaining application snaps, then for content and base snaps that are no longer needed. Run snap list again until only snapd remains, or until no snaps remain.

Ubuntu Terminal showing snap remove commands for Firefox and Snap Store with the purge option
Remove application snaps before base snaps. The --purge option prevents snapd from creating an automatic snapshot during removal.

3. Remove the snapd snap and the snapd package

If snapd still appears in snap list, remove that snap after all other snaps are gone:

sudo snap remove snapd --purge

Then purge the Debian package that provides the Snap daemon and command-line tools:

sudo apt remove --purge snapd

According to Canonical's decommissioning documentation, purging the snapd Debian package removes Snap's main system directories, including /var/snap, /var/lib/snapd, /var/cache/snapd, and /snap. That means the older advice to manually force-unmount core snaps or immediately run destructive rm -rf commands against those system paths is normally unnecessary.

Ubuntu Terminal showing sudo apt remove --purge snapd and package removal output
Purging the snapd Debian package removes the Snap daemon and its main system-managed directories.

4. Remove leftover per-user Snap data

The package purge does not necessarily remove Snap data stored inside each user's home directory. After confirming you no longer need those files, remove the current user's Snap directories:

rm -rf "$HOME/snap" "$HOME/.snap"

If the computer has multiple user accounts, check each home directory separately rather than deleting user data blindly. Log out and back in, or reboot, after the cleanup so your session is refreshed.

5. Optional: prevent snapd from being installed again

If you only wanted to remove Snap for now, you can stop after the previous step. If you want APT to refuse future snapd installs, create an APT preferences file:

sudo nano /etc/apt/preferences.d/nosnap.pref

Add these three lines:

Package: snapd
Pin: release a=*
Pin-Priority: -10

Save the file, then check the result:

apt-cache policy snapd

APT's official apt_preferences manual states that a priority below zero prevents a matching version from being installed. The tradeoff is deliberate: any package that requires snapd can fail to install until you remove this pin.

Ubuntu Terminal showing an APT preferences file for snapd with Pin-Priority minus 10 and apt-cache policy output
An optional negative APT pin keeps snapd from being reinstalled automatically. Use it only if you intend to keep the system Snap-free.

How to re-enable Snap later

To undo the block and restore Snap support, remove the preferences file and reinstall snapd:

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update
sudo apt install snapd

Then log out and back in or reboot. Canonical's Ubuntu snapd installation guide confirms that installing the snapd package restores Snap support on Ubuntu.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.