解决ubuntu下 error occurred during the signature verification

解决ubuntu下 error occurred during the signature verification

转载:https://blog.csdn.net/boy198332/article/details/9198843

在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值