Jos*_*kat 3 updates apt repository gnupg
sudo apt-get update最后给了我这个错误。我正在使用 Y PPA Manager,现在似乎所有 PPA 都可以,但问题(我认为)出在官方 Ubuntu 存储库上:
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 13B00F1FD2C19886
W: GPG error: http://archive.ubuntu.com wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.canonical.com wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com wily-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com wily-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: https://download.01.org vivid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A902DDA375E52366
W: GPG error: http://archive.ubuntu.com wily-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com wily-proposed InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Run Code Online (Sandbox Code Playgroud)
使用 Ubuntu 15.10
我也试过这个没有成功:
jose@jose-Lenovo-G400s:~$ sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 40976EAF437D05B5
gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
Run Code Online (Sandbox Code Playgroud)
jose@jose-Lenovo-G400s:~$ sudo gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -
sudo: ignoring time stamp from the future
[sudo] password for jose:
gpg: keyblock resource `/etc/apt/trusted.gpg.d/webupd8team_ubuntu_y-ppa-manager.gpg': resource limit
gpg: keyblock resource `/etc/apt/trusted.gpg.d/whatsapp-purple_ubuntu_ppa.gpg': resource limit
gpg: keyblock resource `/etc/apt/trusted.gpg.d/wine_ubuntu_wine-builds.gpg': resource limit
jose@jose-Lenovo-G400s:~$
Run Code Online (Sandbox Code Playgroud)
我不知道我做错了什么。谢谢。
apt 只能处理 /etc/apt/trusted.gpg.d 中的 40 个键。41 个密钥,即使您通过所有步骤添加丢失的密钥,您也会收到 GPG 错误“找不到公钥”。
检查此文件中是否有您不再使用的 ppa(s) 中未使用的密钥。如果全部都在使用中,请考虑删除一些 ppa(s) 以及相应的密钥文件
/etc/apt/trusted.gpg.d
所以我去/etc/apt/trusted.gpg.d删除了 2 个 GPG 密钥(现在还剩下 39 个/etc/apt/trusted.gpg.d)。sudo apt-get update工作正常,现在我可以升级任何软件包。
| 归档时间: |
|
| 查看次数: |
3529 次 |
| 最近记录: |