如何获取更新?

如何获取更新?

当我尝试获取更新时出现此错误:

Reading package lists... Error!
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

我该怎么办呢?

答案1

修复此问题的方法是再次下载失败的密钥。尝试以下命令:

sudo apt-key adv --keyserver ke16126D3A3E5C1192yserver.ubuntu.com --recv-keys <keymumber>

请注意,您需要用错误中 BADSIG 旁边的密钥号进行替换。

在这种情况下W: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>

它是16126D3A3E5C1192

答案2

Ubuntu Extras 存储库的密钥位于包中ubuntu-extras-keyring,该包显然未安装在您的系统上;请安装它。

相关内容