Mint下安装Snap错误解决方案

标签: , ,

正在查看 3 条回复
  • 作者
    帖子
    • okass - WirelessLink社区okass
      参与者
      #1074
      Up
      0
      Down
      ::

      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: -10

       

      3. 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

      访问ChatGPT的可用VPS机房IP推荐 Lisahost美国原生IP搬瓦工美西DMITTripodcloudFrantech
    • okass - WirelessLink社区okass
      参与者
      #1075
      Up
      0
      Down
      ::

      1. sudo rm /etc/apt/preferences.d/nosnap.pref
      2. sudo apt update
      3. sudo apt install -y snapd
      4. snap version

      snap 2.51.1+20.04ubuntu2
      snapd 2.51.1+20.04ubuntu2
      series 16
      linuxmint 20.1
      kernel 5.4.0-58-generic

      访问ChatGPT的可用VPS机房IP推荐 Lisahost美国原生IP搬瓦工美西DMITTripodcloudFrantech
    • okass - WirelessLink社区okass
      参与者
      #1076
      Up
      0
      Down
      ::

      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.list

       

      Then you can install the Spotify client:

      sudo apt-get update && sudo apt-get install spotify-client

       

      访问ChatGPT的可用VPS机房IP推荐 Lisahost美国原生IP搬瓦工美西DMITTripodcloudFrantech
    • okass - WirelessLink社区okass
      参与者
      #1077
      Up
      0
      Down
      ::

      snap商城地址: https://snapcraft.io/search?category=featured

       

      访问ChatGPT的可用VPS机房IP推荐 Lisahost美国原生IP搬瓦工美西DMITTripodcloudFrantech
正在查看 3 条回复
  • 哎呀,回复话题必需登录。
WirelessLink社区
Logo