这是一个疯狂的 Ubuntu 安装的故事。
有一天,在安装、喜爱并向其他操作系统展示谁是老大之后,它决定删除许多存储的签名/公钥 - 全部靠它自己!
Ubuntu 安装可以很好地应对,但它的用户在尝试apt-get update
.
如果可以在没有验证的情况下进行更新,那么用户决定试一试(承认风险)并且......他们都知道这是不可能的。
所以 - 到互联网上,所有其他 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 <[email protected]>
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 密钥。
要安装和使用它,请打开终端并复制/粘贴以下命令:
上面的第一个命令将目录更改为您的下载文件夹,第二个命令下载 .deb,第三个命令安装 .deb,最后一个命令运行“launchpad-getkeys”脚本,该脚本会自动导入所有缺少的 GPG 密钥。
如果您使用的是代理,那么您需要更改一些内容,所以如果您也需要相关信息,请告诉我。
顺便说一句,我看到您还有其他一些错误,而不仅仅是 GPG 密钥。看起来您有一些损坏的 PPA .list 文件(例如,我看到您收到 WebUpd8 PPA 的 404 not found 错误,因为 PPA 从 Jaunty 到 Natty 一直存在 - 也许您的 Internet 连接已关闭?)。