gpgkeys:密钥服务器上找不到密钥C927EBE00F1B0520
可能重复:
如何修复GPG错误“NO_PUBKEY”?
我使用的是10.04 LTS – Lucid Lynx。
我在运行软件更新时关闭了计算机。 然后我重新启动计算机后,当更新管理器运行时,我收到此错误:
无法下载所有存储库索引
由于网络问题,存储库可能不再可用或无法联系。 如果可用,将使用旧版本的失败索引。 否则,将忽略存储库。 检查网络连接并确保首选项中的存储库地址正确无误。
GPG error: http://toolbelt.herokuapp.com ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520 Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/**DISTRIBUTION**/main/binary-i386/Packages.gz 404 Not Found
我找到了如何修复GPG错误“NO_PUBKEY”的答案?
我试过这个
$ sudo launchpad-getkeys Please wait... launchpad-getkeys is running an update so it can detect the missing GPG keys Trying to import all the missing keys gpg: requesting key 0F1B0520 from hkp server keyserver.ubuntu.com gpgkeys: key C927EBE00F1B0520 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0 launchpad-getkeys has finished importing all missing GPG keys. Try running sudo apt-get update - you shouldn't see any key errors anymore
但是当我再次运行sudo apt-get update
时,它再次显示密钥服务器上找不到密钥。 如何解决这个问题呢?
您的问题中有两个错误,其中一个产生了GPG错误。
GPG error: http://toolbelt.herokuapp.com ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520
此GPG错误与Launchpad无关,因此无法使用launchpad-getkeys
检索launchpad-getkeys
。 按照http://toolbelt.herokuapp.com/linux/readme上的说明,您必须添加密钥:
wget -q -O - http://toolbelt.herokuapp.com/apt/release.key | apt-key add -
请注意,外部存储库可能不安全,只添加您真正信任的存储库和密钥。
Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/\*\*DISTRIBUTION\*\*/main/binary-i386/Packages.gz 404 Not Found
你在遵循指示时犯了一个错误。 编辑/etc/apt/sources.list
并将**DISTRIBUTION**
替换为小写的实际分布(例如oneiric
)。 这是一个自动执行此操作的命令:
sudo sed -i /etc/apt/sources.list "s/\*\*DISTRIBUTION\*\*/$(lsb_release -sc)/"
在sources.list
文件中,将**DISTRIBUTION**
替换为**DISTRIBUTION**
的实际名称(在本例中为lucid
)。
你试过这个:
sudo rm -r /var/lib/apt/lists sudo mkdir -p /var/lib/apt/lists/partial sudo aptitude update
Ubuntu没有aptitude的更详细和更新的代码是:
sudo -i apt-get clean cd /var/lib/apt mv lists lists.old mkdir -p lists/partial apt-get clean apt-get update
该解决方案适用于heroku toolbelt GPG密钥错误
来源: 如何修复GPG错误没有pubkey