Skip to main content

Step-by-Step Fix for Installing snapd on Linux Mint

Ah — good catch. You need to install snapd but linux wont let you... Let’s fix that step by step 👇


🧰 Step-by-Step Fix for Installing snapd on Linux Mint

1. Check your Ubuntu base version

Run this first:

grep UBUNTU_CODENAME /etc/os-release

You’ll likely see something like:

UBUNTU_CODENAME=noble

(Mint 22 "Zara" → Ubuntu 24.04 “Noble Numbat”)


2. Remove Mint’s Snap block

Linux Mint disables Snap by default using a preference file.

Run:

sudo rm -f /etc/apt/preferences.d/nosnap.pref

That file literally tells APT: “don’t install snapd.”


3. Add Ubuntu repositories (if missing)

Make sure your /etc/apt/sources.list (or Mint repo list) includes Ubuntu’s repositories.

Run:

cat /etc/apt/sources.list

If you only see packages.linuxmint.com entries and not any archive.ubuntu.com or security.ubuntu.com lines, you’ll need to add them manually.

For Mint 22 (Ubuntu 24.04 base), add this:

echo "deb http://archive.ubuntu.com/ubuntu noble main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
echo "deb http://archive.ubuntu.com/ubuntu noble-updates main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
echo "deb http://security.ubuntu.com/ubuntu noble-security main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list

4. Update your package lists

sudo apt update

Now APT should see the standard Ubuntu repositories.


5. Install Snapd

sudo apt install snapd -y

If all goes well, you’ll see it pulling from the Ubuntu repos.


6. Enable Snap service

sudo systemctl enable --now snapd.socket

Then check it:

snap version

✅ Optional: Reboot (recommended)

sudo reboot

Would you like me to give you a single copy-paste command block that handles all these steps automatically for Mint 22 (Zara)?