【问题标题】:sudo-apt get update fails because of spotify repository由于 spotify 存储库,sudo-apt get update 失败
【发布时间】:2019-01-28 03:57:21
【问题描述】:

我一直在尝试运行 sudo apt-get update,但它不断吐出一个错误,它无法获取 http://repository.spotify.com/dists/stable/InRelease。输出如下:

Hit:1 http://repo.steampowered.com/steam precise InRelease
Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://repository.spotify.com stable InRelease [3,302 B]
Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease
Hit:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Err:4 http://repository.spotify.com stable InRelease
  The following signatures couldn't be verified because the public key         
is not available: NO_PUBKEY A87FF9DF48BF1C90
Fetched 3,302 B in 1s (2,125 B/s)
Reading package lists...Done
W: An error occured during the signature verification. The repository         
is not updated and the previous index files will be used. GPG error:         
http://repository.spotify.com stable InRelease: The following     
signatures couldn't be verified because the public key is not 
availiable: NO_PUBKEY A87FF9DF48BF1C90
W:Failed to fetch http://repository.spotify.com/dists/stable/InRelease 
The following signatures couldn't be verified because the pupblic key 
is not available: NO_PUBKEY A87FF9DF48BF1C90
W: Some index files failed to download. They have been ignored, or old     
ones used instead. `

现在有什么方法可以完全摆脱 spotify 存储库吗?或者更新它?我想不通。

【问题讨论】:

  • 要摆脱它,您必须删除存储库文件。它位于 /etc/apt/sources.list.d/ 中,并且命名为 spotify.list 或类似名称。
  • 这些类型的问题更适合堆栈溢出姐妹网站askubuntu.com 但是,Stanley 说的应该可以。

标签: ubuntu repository spotify sudo xfce


【解决方案1】:

在输出中确定以下值,您现在看到的是供参考

NO_PUBKEY 11111111111

然后将其添加到以下命令中,在本例中为 11111111111

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 11111111111

终于

$ sudo apt update

它对我有用,这里是帮助我的来源,我希望它对你有用。

https://linuxconfig.org/ubuntu-20-04-gpg-error-the-following-signatures-couldn-t-be-verified

【讨论】:

    【解决方案2】:

    由于目前尚不清楚其根本原因,我通过使用 wget 下载密钥并手动将其添加到 apt 受信任的密钥来解决此问题。

    $ wget -q "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA87FF9DF48BF1C90" -O-  | gpg --dearmor > spotify-A87FF9DF48BF1C90.gpg
    
    $ sudo mv spotify-A87FF9DF48BF1C90.gpg /etc/apt/trusted.gpg.d/
    

    正确更新了 spotify 存储库。

    以上数据取自博客https://linuxer.eu/apt-key-gpg-keyserver-receive-failed/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-14
      相关资源
      最近更新 更多