首页 > 其他 > 详细

apt-get 的种种问题

时间:2014-11-23 10:31:40      阅读:770      评论:0      收藏:0      [点我收藏+]

出现以下这个错误时:

BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>


1.用vi文件编辑工具在linux创建一人新文件“apt-wilson.sh”;


sudo apt-get clean
cd /var/lib/apt
sudo rm -rf lists.old
sudo mv lists lists.old

gpg --delete-key --armor 40976EAF437D05B5
sudo apt-key del 40976EAF437D05B5

gpg --keyserver-options http-proxy --keyserver keyserver.ubuntu.com --recv 0976EAF437D05B5
gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -

sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update


2.然后用命令行"./apt-wilson.sh"执行它

执行完成后还有以下错误

W: GPG error: http://mirrors.aliyun.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://mirrors.aliyun.com precise-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://mirrors.aliyun.com precise-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://security.ubuntu.com precise-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5

3.然后再执行以下命令行:

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5

4.最的再执行下面的命令行应该就没有问题了

apt-get update



apt-get 的种种问题

原文:http://blog.csdn.net/wilsonke/article/details/41408099

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!