解决ubuntu下 error occurred during the signature verification

来源:互联网 发布:淘宝哪里申请商标认证 编辑:程序博客网 时间:2024/06/06 14:03

在ubuntu 下想安装一个软件(我使用的是163的源),却被告知 file size mismatch.

于是更新了package list:

sudo apt-get update

...

...

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com lucid-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com lucid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com lucid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>


即使执行:

sudo apt-get clean

sudo apt-get update

还是会有相同的错误。


Google 并查看了文档:

http://ubuntuforums.org/showthread.php?t=1480604


有了解决方案:

sudo apt-get clean

cd /var/lib/apt

sudo mv lists lists.old

sudo mkdir -p lists/partial

sudo apt-get clean

sudo apt-get update


通过这些处理之后再次安装package的时候就没有这个file size mismatch错误了,但还是会有些其他的错误,不知道是不是跟我使用163的源有关。

关于error occurred during the signature verification 的原因,似乎是:

Looks like this old fix still does the trick.


原始的ubuntu bug report:

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/24061

原创粉丝点击