ubuntu执行sudo apt-get update提示缺少公钥
提示信息如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
获取: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
|
解决方法:
1
|
sudo
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8D5A09DC9B929006 |