sudo-apt get update由于Spotify存储库而失败

时间:2018-08-21 22:27:49

标签: ubuntu repository spotify sudo xfce

我一直在尝试运行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重新流行吗?或更新它?我想不通。

2 个答案:

答案 0 :(得分:0)

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

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

答案 1 :(得分:-1)

由于目前尚不清楚其根本原因,我通过使用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/中获取并测试