W: GPG 错误:http://mirrors.163.com precise-proposed Release: 下列签名无效: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]> W: 无法下载 bzip2:/var/lib/apt/lists/partial/mirrors.163.com_ubuntu_dists_precise-updates_universe_binary-i386_Packages Hash 校验和不符
先删除密钥 sudo gpg --delete-key --armor 40976EAF437D05B5 sudo apt-key del 40976EAF437D05B5
在重新添加密钥 sudo gpg --keyserver-options http-proxy --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5 sudo gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -
清除apt缓存后再更新 sudo apt-get clean cd /var/lib/apt sudo rm -rf lists.old sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/2488.html