码迷,mamicode.com
首页 > 其他好文 > 详细

apt-get 的种种问题

时间:2014-11-23 10:32:09      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:40976eaf437d05b5   ubuntu   apt-get   

出现以下这个错误时:

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 的种种问题

标签:40976eaf437d05b5   ubuntu   apt-get   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!