How To Install and Use Snap in Linux Mint 22

Snap is a package that offers an easy way to install applications in Linux distributions. This guide will walk you through the installation of Snap on Linux Mint 22.

Snap packages, snappy and snapd

Snap packages (snaps) are software packages that have been bundled with all their dependencies for easy installation, initially developed by Canonical for Ubuntu. Snaps are now available for all major Linux distributions.

Snappy is the package manager used to manage snap.

Snapd is the service running snap (snap daemon).

Why use snap?

The advantage of using snap over other package managers like RPM, APT and Pacman is that snaps are already bundled with their dependencies reducing the worries of missing dependencies during installations.

Linux Mint 22 Blocks default Ubuntu Snap Installation

In the previous versions of Mint, snap was installed by default but with Linux Mint 22, users will have have to install it manually whenever they want. The command sudo apt install snapd will not work for Linux Mint 22 because ATP blocks snapd from being installed. To verify this, try to install snapd in Linux mint 22.

sudo apt update && sudo apt install snap -y

The output throws an error that slapd has no installation candidate.

Enable Snap Support in Linux Mint 22

In this guide, we will see how to enable snap support in Linux 22 and install snapd.

Open the file named nosnap.pref in /etc/apt/preferences.d.

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

The content of the file are as shown below.

To enable snap support, either delete nosnap.pref file or comment out the lines of code in the file. To completely remove the file, run the command below:

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

In my case, I commented out the lines of code so that the file is as shown.

After commenting, press cntrl + x, followed by Y then Enter to save the changes Enter to save the changes.

Install Snapd in Linux Mint 22

After deleting the file or disabling the codes in the file, you can now install snapd normally in your Mint 22.

sudo apt install snapd -y

Snapd installation will run to completion and you can verify by checking status or version. Run the below command to check the installed snapd version

$ snap version
snap          2.72+ubuntu24.04
snapd         2.72+ubuntu24.04
series        16
linuxmint     22.1
kernel        6.8.0-51-generic
architecture  amd64

To check snapd status, run the command as shown below:

sudo systemctl status snapd

Install snap packages on Linux Mint 22

It is time to use snap to install packages in your Linux Mint 22.

snap help command

The help command allows to see command options to use with snap.

snap --help

Use find command to search and install packages with snap:

snap find <package-name>
snap install <package-name>

Find and install chromium with snap

snap find chromium

Now install chromium with snap

sudo snap install chromium

Chromium will be downloaded and installed.

Disable Snap Support in Linux Mint 22

If you do not wish to leave snap support enabled in your Linux Mint 22, you can easily disable using the nosnap.pref file. If you only commented the lines of code in nosnap.pref file, open it, remove the comments and save the file.

If you had deleted, create the same file in the same path and save it. This has been a guide to install and use snap in Linux mint 21 and I hope it has been informative.

Check more guides below

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

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

Related Post

ADB, short for Android Debug Bridge, is a cross-platform command line utility. It helps users in communicating to Android devices […]

In this guide, we are going to look at how to install MongoDB 8.0 on Oracle Linux 10. MongoDB is […]

PostgreSQL is one of the most used database management systems. It is robust, highly available and easy to install. PostgreSQL […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.