Installing Snap in Linux Mint

Linux Mint does not recognise Snap by default.

Today I wanted to install “snap” on my Linux computer. However, the installation failed.

The installation is normally performed like this:

sudo apt install snapd

But I only got an error message that “snap” does not exist.

Package 'snapd' has no installation candidate

The reason is that the snap installation is disabled by default in Linux Mint. This is controlled by a settings file. However, we can easily delete this file with the following command.

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

We then update the package sources.

sudo apt update

The installation then works.

Leave a Reply

Your email address will not be published. Required fields are marked *