How to Enable Snap Applications Support in Linux Mint (If You Really Need to Use Snap)

Linux Mint doesn't support Snap applications by default. If you really need it, here's how you can enable Snap in Mint.
Warp Terminal

The recent versions of Linux Mint versions don't have Snap support enabled by default.

Sooner or later, you may encounter a situation where an application version is only available as Snap package and then you need to enable Snap support.

If you go about enabling Snap in Mint 20 like you do in other Linux distributions, you’ll encounter an error like this:

E: Package 'snapd' has no installation candidate
Snap Support Linux Mint 20
Snap installation needs slight extra effort in Linux Mint 20

Normally, this error means that the package is not available in the repository but that’s not the case here. Snap is explicitly blocked here and you have to remove this block by removing the /etc/apt/preferences.d/nosnap.pref file.

If you are comfortable with Linux command line, you can easily delete this file and enable snap support.

If you are not comfortable with the terminal, I discuss a slightly safer way of doing it and that is to move the file instead of removing it.

Enable snap support in Linux Mint 20

In a terminal, type the following command to move the nosnap preference file to your home directory:

sudo mv /etc/apt/preferences.d/nosnap.pref ~

Now you can go on and install the snapd daemon like always:

sudo apt install snapd
Enable Snap Support Linux Mint 20

Once the snap support is enabled in Linux Mint, you can use the snap commands to install applications in Snap format.

You can use the Nemo file browser and delete the file you copied in the home directory. Safer this way, if you are afraid of the rm command in terminal.

Why Linux Mint explicitly disabled Snap support?

Snap is a universal package format that can be installed in any distribution that supports snapd. This is one of the biggest advantage of snap packages.

These snap packages are ‘containerized’ meaning that these packages contain all the dependency within the package and they don’t rely on and interact with the system’s installed packages and libraries (mostly). Snap packages are automatically updated to newer versions.

But snap packages have some negative points as well. They are huge in size. If an apt package is 100MB in size, the snap package of the same application may have 1 GB of size.

Apart from that, snap applications take longer to load and they also take more disk spaces.

But that’s not the reason why snaps are banished from Linux Mint 20.

Linux Mint team took a hard decision of blocking Snap by default after Ubuntu went on to blurring the line between apt packaging system and snap packaging system.

When you use apt to install an application, you expect an apt package to be installed. But that’s not the case in Ubuntu 20.04 (Mint 20 is based on this Ubuntu version). In Ubuntu 20.04, if you use apt to install Chromium browser, it installs a snap version of this browser.

Mint team is clearly not happy with this violation:

A year later, in the Ubuntu 20.04 package base, the Chromium package is indeed empty and acting, without your consent, as a backdoor by connecting your computer to the Ubuntu Store. Applications in this store cannot be patched, or pinned. You can’t audit them, hold them, modify them or even point snap to a different store. You’ve as much empowerment with this as if you were using proprietary software, i.e. none. This is in effect similar to a commercial proprietary solution, but with two major differences: It runs as root, and it installs itself without asking you.

And hence they decided to explicitly blocked snap support from Mint 20.

To snap or not snap, that is the question

As always, there is a way in Linux to get what you want. So, you can bypass this blockage and enable snap package support in Linux Mint 20.

As I mentioned in the beginning, you may face certain situations where an application is only available as Snap and then you may need Snap support. But till then, you can enjoy Linux Mint 20 without snap.

What about you? Are you going to use snap or not? What do you think of the overall ‘no snap in my distro’ approach?

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.