欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu执行sudo apt-get update提示缺少公钥

程序员文章站 2022-07-14 16:06:03
...

ubuntu执行sudo apt-get update提示缺少公钥

提示信息如下:

获取:1 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease [3,192 B]
命中:2 http://mirrors.aliyun.com/ubuntu xenial InRelease                                                                       
忽略:1 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease                                                
命中:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease                                                       
忽略:4 http://dl.google.com/linux/chrome/deb stable InRelease                                                          
命中:5 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease                                
命中:6 http://dl.google.com/linux/chrome/deb stable Release                                                             
命中:7 http://mirrors.aliyun.com/ubuntu xenial-security InRelease                                                       
命中:9 http://archive.ubuntu.com/ubuntu xenial InRelease                                           
已下载 3,192 B,耗时 1秒 (2,616 B/s)               
正在读取软件包列表... 完成
W: GPG 错误:http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 8D5A09DC9B929006
W: 仓库 “http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease” 没有数字签名。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 以下 ID 的**没有可用的公钥:
8D5A09DC9B929006 

解决方法:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8D5A09DC9B929006

来源:https://www.cnblogs.com/lyxy/p/5791652.html