Ubuntu apt-get update错误解决

Posted 哈鲁曼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu apt-get update错误解决相关的知识,希望对你有一定的参考价值。

用apt-get命令安装开发软件非常方便,但由于各种原因,经常链接不上软件源,于是需要使用sudo apt-get update命令来更新软件源。

而屋漏偏逢连夜雨,这时候更新命令也罢工,出现各种错误。。。

执行sudo apt-get update,出现下面两个错误。

W: GPG error: http://cran.cnr.berkeley.edu precise/ Release: The following signatures couldn‘t be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 1E9377A2BA9EF27F Launchpad Toolchain builds

 

解决办法:

第一个,

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 51716619E084DAB9

 

第二个,

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

 

以上是关于Ubuntu apt-get update错误解决的主要内容,如果未能解决你的问题,请参考以下文章

Docker Ubuntu apt-get update 错误 Temporary failure resolving

ubuntu apt-get update 失败解决

ubuntu 使用sudo apt-get update 出现 被配置多次导致无法升级错误解决方法

ubuntu apt-get update 失败解决

Ubuntu系统 apt-get update失败,出现“Certificate verification failed ”错误以及“无法安全地用该源进行更新“等问题解决办法

ubuntu apt-get update错误