我的回购的许多签名/公钥都消失了!

这是一个疯狂的Ubuntu安装的故事。

有一天,在安装,喜爱和展示其他操作系统的老板之后,它决定删除许多存储的签名/公钥 – 所有这些都是独立的!

Ubuntu的安装很好,但是用户发现在尝试apt-get update时很难解决。

如果可以在没有validation的情况下进行更新,则用户决定放弃(承认风险)并且……他们都知道这是无法继续进行的。

所以 – 互联网上所有其他Ubuntu用户所在的地方!

打破叙述者角色片刻

我运行的最后一次apt-get update给出了这组错误:

 W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http ://gb.archive.ubuntu.com maverick Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key  W: GPG error: http ://ppa.launchpad.net maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 61E091672E206FF0 W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http ://ppa.launchpad.net maverick Release: The following signatures were invalid: BADSIG 9DAD42D740C11E40 Launchpad Cloudsn Reporitory W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http ://ppa.launchpad.net maverick Release: The following signatures were invalid: BADSIG B725097B3ACC3965 Launchpad lffl W: GPG error: http ://ppa.launchpad.net maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D3B959722E58263 W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/maverick/Release W: Failed to fetch http://ppa.launchpad.net/chuchiperriman/cloudsn/ubuntu/dists/maverick/Release W: Failed to fetch http://ppa.launchpad.net/ferramroberto/vlc/ubuntu/dists/maverick/Release W: Failed to fetch http://nightlies.videolan.org/build/intrepid-i386/arch/./Packages.gz 404 Not Found W: Failed to fetch http://ppa.launchpad.net/nilarimongard/webupd8/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found W: Failed to fetch http://ppa.launchpad.net/nilarimongard/webupd8/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found W: Some index files failed to download, they have been ignored, or old ones used instead. 

我已经阅读过Ubuntu论坛,我可以逐个浏览每个丢失的sig / key并将其恢复。 这似乎是一个很长时间的解决方案。

是否有一行代码可以自动查找任何和所有丢失的密钥? 或者我注定要手动挖掘这些以后变得快乐?

Launchpad-Getkeys(一个小包装在.deb中以便于安装)会自动导入所有丢失的GPG密钥。

要安装和使用它,请打开终端并复制/粘贴以下命令:

 cd ~/Downloads wget https://launchpad.net/~nilarimogard/+archive/webupd8/+files/launchpad-getkeys_0.3.1-1%7Ewebupd8%7Emaverick3_all.deb sudo dpkg -i launchpad-getkeys*.deb sudo launchpad-getkeys 

上面的第一个命令将目录更改为Downloads文件夹,第二个命令将下载.deb,第三个命令安装.deb,最后一个命令运行“launchpad-getkeys”脚本,该脚本自动导入所有丢失的GPG密钥。

如果您正在使用代理,那么您需要更改一些内容,所以如果您需要相关信息,请告诉我。

顺便说一下,我发现你还有其他一些错误,而不仅仅是GPG键。 看起来你有一些破坏的PPA .list文件(例如我看到你得到了一个404未找到的WebUpd8 PPA错误,因为PPA从Jaunty到Natty一直存在 – 也许你的互联网连接失败了?)。