Methods of payment Abuse

How to Enable SNAP Support in Linux Mint

19.12.2024, 18:20

Snap is a package management system for Linux designed to simplify the installation, management, and updating of software.

However, only a few Linux distributions outside the Ubuntu family support Snap out of the box. Most of them include the Snap Daemon package (snapd) in their repositories, allowing users who want to use Snap to do so.

Linux Mint takes a different stance: since version 20, Snap packages cannot be installed without additional tweaks. The Mint team explains their decision not to support Snap by highlighting that the distribution already provides built-in support for DEB and Flatpak. However, they don’t prohibit using Snap for those who want it. The restriction they have implemented serves more as a warning than an insurmountable obstacle.

How to Re-enable Snap Installation

Open the terminal and navigate to the apt configuration folder:

cd /etc/apt/preferences.d

In this folder, you will find the nosnap.pref file, which blocks Snap installations. It is recommended not to delete it but to move it to a backup location instead. This allows you to restore the file if you decide to disable Snap support again later.

Run the following command to move and back up the file:

sudo mv nosnap.pref ~/Documents/nosnap.backup

Update the repository list so that Mint recognizes the Snap Daemon package (snapd), and then install snapd, the service that manages Snap:

sudo apt update && sudo apt install snapd

Now you can install Snap applications using the command

sudo snap install

Installing App Center for GUI Management

The Linux Mint package manager does not support searching for or managing Snap applications. However, you can install the App Center (a Snap package) to manage Snap apps via a graphical interface.

App Center allows you to search for and install applications from the Snap Store, update and manage installed apps (e.g., switch to beta versions), and more — all without needing to use the command line.

To install App Center, run the following command:

sudo snap install snap-store