![安装软件中心后,Spotify 没有公共 Repo 密钥(无法通过 apt 更新)](https://linux22.com/image/1169232/%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E4%B8%AD%E5%BF%83%E5%90%8E%EF%BC%8CSpotify%20%E6%B2%A1%E6%9C%89%E5%85%AC%E5%85%B1%20Repo%20%E5%AF%86%E9%92%A5%EF%BC%88%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87%20apt%20%E6%9B%B4%E6%96%B0%EF%BC%89.png)
在另一个用户从软件中心安装 Spotify 之后,我注意到我无法再按 apt 更新,如下所示:
Err:2 http://repository.spotify.com stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45
W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
因此我尝试了手册页建议:
sudo apt update --allow-unauthenticated
但是它什么都没做,apt-get 版本也没有,所以现在我处于一个有点棘手的境地。任何帮助都将不胜感激,谢谢!
答案1
事实证明,我决定尝试添加公共存储库密钥,仅此一项就解决了我的问题(并允许我对系统进行一些非常需要的升级)。下面是我输入的解决问题的命令:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4773BD5E130D1D45
这是 APT 用户能看到的最美好的事情之一:)
Fetched 6,131 B in 1s (5,112 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
29 packages can be upgraded. Run 'apt list --upgradable' to see them.