Mint下安装Snap错误解决方案
- 作者帖子
- Up::0
Linux mint下安装snap提示错误的解决方案
原因: Mint官方团队屏蔽了snap
1.Delete the nosnap.pref file in the directory /etc/apt/preferences.d by running the command:
sudo rm /etc/apt/preferences.d/nosnap.pref
2.Comment the three lines of code in the same file.
Package: snapd
Pin: release a=*
Pin-Priority: -103. Now, install snapd:
sudo apt install snapd
Then, any snap apps:
sudo snap install <app-name>
There is also another method as well to install snap packages without interfering with nosnap.pref file. That is, installing app using version number:
sudo apt install <app-name> snapd=VERSION
- Up::0
1. sudo rm /etc/apt/preferences.d/nosnap.pref
2. sudo apt update
3. sudo apt install -y snapd
4. snap versionsnap 2.51.1+20.04ubuntu2
snapd 2.51.1+20.04ubuntu2
series 16
linuxmint 20.1
kernel 5.4.0-58-generic - Up::0
Install Spotify on Ubuntu
Snap
If you don’t have access or don’t want to use Ubuntu Software, it is possible to install Spotify from the command line with snap. Run the following command in your terminal:snap install spotify
If you run another Linux distribution than Ubuntu, first see https://snapcraft.io/ for how to install snap, then run the command above.
Debian / Ubuntu
Spotify for Linux is also released as a Debian package. Our aim is that it should work with the latest Long Term Support release of Ubuntu, but we will try to make it work for other releases of Ubuntu and Debian as well.You will first need to configure our debian repository:
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add –
echo “deb http://repository.spotify.com stable non-free” | sudo tee /etc/apt/sources.list.d/spotify.listThen you can install the Spotify client:
sudo apt-get update && sudo apt-get install spotify-client
- 作者帖子
- 哎呀,回复话题必需登录。