sudo apt update出现 GPG错误,怎么办?
Tofloor
poster avatar
johnmy
deepin
2017-01-23 03:00
Author
想升级4.9内核,结果安装下载的几个deb,包括从ubuntu和deepin都没有成功。

结果运行sudo apt update时出现 GPG错误,怎么办?

正在读取软件包列表... 完成
W: GPG 错误:http://cran.rstudio.com/bin/linux/debian jessie-cran3/ Release: 下列签名无效: 6212B7B7931C4BB16280BA1306F90DE5381BA480
W: 仓库 “http://cran.rstudio.com/bin/linux/debian jessie-cran3/ Release” 没有数字签名。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。


根据网上教程导入6212B7B7931C4BB16280BA1306F90DE5381BA480key错误出现。

是哪的问题啊

按下面也没有解决:

update签名无效,这里可能的情况是 cache 出错, 可以通过以下步骤来重建cache

[plain] view plain copy
print?


  • sudo -i  
  • apt-get clean  
  • cd /var/lib/apt  
  • mv lists lists.old  
  • mkdir -p lists/partial  
  • apt-get clean  
  • apt-get update  

这样,  apt-cache 就重建了, 签名问题也一并解决了.
参考: http://askubuntu.com/questions/88378/update-manager-fails-to-update-badsig-errors-displayed-in-synaptic

http://www.cnblogs.com/cute/archive/2012/05/21/2511653.html

W: GPG签名验证错误: http://ppa.launchpad.NET karmic Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY FA9C98D5DDA4DB69的解决办法
出现以上错误提示时,只要把后八位拷贝一下来,并在[终端]里输入以下命令并加上这八位数字回车即可!
sudo apt-key adv --recv-keys --keyserver keyserver.Ubuntu.com DDA4DB69
此类问题均可如此解决!





Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-01-23 17:05
#1
直接在这里下载对应的包就可以了http://kernel.ubuntu.com/~kernel-ppa/mainline/

你sources,list加了上游的源吧,删除下。
Reply View the author
avatar
johnmy
deepin
2017-01-24 02:23
#2
http://cran.rstudio.com/bin/linux/debian jessie-cran3应该是R软件的源,
Reply View the author
avatar
johnmy
deepin
2017-01-24 02:26
#3
jingle 发表于 2017-1-23 09:05
直接在这里下载对应的包就可以了http://kernel.ubuntu.com/~kernel-ppa/mainline/

你sources,list加了上游 ...

就是在这个网站上下载的,4.9.4和4.9.5。安装时好像提示少东西
Reply View the author