首页 > 代码库 > apt-get 的种种问题
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 的种种问题
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。