gpgkeys:密钥服务器上未找到密钥 C927EBE00F1B0520

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再次运行时,它再次显示在密钥服务器上未找到密钥。如何解决这个问题?

答案1

您的问题中有两个错误,其中一个产生了 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。按照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)/"

答案2

sources.list文件中将其替换**DISTRIBUTION**为分发的实际名称(在本例中为lucid)。

答案3

您是否尝试过这个:

sudo rm -r /var/lib/apt/lists
sudo mkdir -p /var/lib/apt/lists/partial
sudo aptitude update

针对没有 aptitude 的 Ubuntu 的更详细和更新的代码是:

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 key 错误

来源:如何修复 GPG 错误 no pubkey

相关内容