This error occurs when APT blocks installation of a package that is provided as a snap snap on your system. Linux Mint specifically restricts snapd installation to maintain APT control over package management.
APT is telling you that the package you're trying to install is not available in the APT repositories. This typically happens when a distribution (like Linux Mint) has deliberately blocked the snap package from being installable via APT. The package may exist as a snap application, but the APT package manager cannot find or is not allowed to install it because of pin priority rules in /etc/apt/preferences.d/. This is a policy decision by distributions to prevent automatic replacement of APT packages with snap versions without user consent.
First, verify if your system has a blocking preference file:
ls /etc/apt/preferences.d/nosnap.prefIf the file exists, this confirms APT is deliberately blocking snap packages. If it doesn't exist, the issue may be a package availability problem in your repositories.
Before making changes, refresh your package list to ensure you have the latest repository information:
sudo apt updateThis will re-index all available packages and may resolve the issue if it was just a stale cache.
If you want to enable snap on Linux Mint, remove the nosnap.pref file that blocks snapd:
sudo rm /etc/apt/preferences.d/nosnap.prefThen update your package list again:
sudo apt updateAfter this, you should be able to install snapd and snap packages through APT.
If you prefer not to enable snap support, consider using Flatpak as an alternative universal package manager. Linux Mint includes native Flatpak support:
sudo apt install flatpak
flatpak install flathub <app-name>Flatpak provides similar functionality to snap and may be better integrated with your distribution.
After removing the blocking file, verify that snap works:
sudo apt install snapd
sudo systemctl start snapd
sudo systemctl enable snapd
snap --versionYou should see the snap version if installation was successful.
Some distributions like Linux Mint have a specific policy against snap because Canonical has made snap the default installation method for certain packages (like Chromium and Firefox) without explicit user consent. This preference blocking is a deliberate design choice. The nosnap.pref file uses APT's Pin-Priority system to set snapd to a negative priority (-10), which makes it ineligible for installation. Other distributions like Debian may have similar restrictions. If you modify or remove the nosnap.pref file, be aware that future system updates might reintroduce it. Some users have also reported that even after removing the block, Ubuntu repositories may still try to install snap packages through 'fake' APT packages that automatically install the snap version instead. Keep an eye on update notifications and review what packages will be installed before confirming.
E: Could not connect to proxy server
Could not connect to proxy server
E: Package 'package:i386' has no installation candidate
How to fix "Package package:i386 has no installation candidate" in apt
E: The value 'value' is invalid for APT::Default-Release
How to fix invalid APT::Default-Release value in APT
dpkg: error: unable to create new file 'path': Permission denied
How to fix dpkg permission denied errors in APT
subprocess installed post-removal script returned error exit status 1
How to fix "subprocess installed post-removal script returned error exit status 1" in APT