在另一个用户从软件中心安装 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.