Ubuntu 16.04更新软件提示"需要安装不能信任的软件包" http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease

本文介绍了在使用Ubuntu16.04进行软件更新时遇到的“需要安装不可信任的软件包”的问题及其解决方法。文章详细说明了如何通过更新软件源列表及添加公钥来解决更新过程中出现的GPG错误。

刚才用 Ubuntu 16.04更新软件时提示“需要安装不能信任的软件包”,“这个动作需要从没有授权的软件源来安装软件包”,

赋予权限执行仍然无法安装,上网查了一下,只需要升级一下软件源列表(在终端下执行 sudo apt-get update ,需要保持联网)再执行安装即OK。


但是我执行apt-get update 后报错,如下:

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 

解决办法:
转自http://www.ubuntukylin.com/ukylin/forum.php?mod=viewthread&tid=25039
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8D5A09DC9B929006
注意最后的一串密钥就是报错信息里的, 每个人的不一样

# deb cdrom:[Ubuntu-Kylin 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main multiverse restricted universe # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb http://mirrors.aliyun.com/ubuntu/ xenial universe # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu xenial partner # deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe # deb-src http://security.ubuntu.com/ubuntu xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse整个文件就么就出现过1001
最新发布
10-21
错误:1 http://mirrors.ustc.edu.cn/ubuntu xenial InRelease 连接失败 [IP: 202.141.160.110 80] 错误:2 http://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease 连接失败 [IP: 202.141.160.110 80] 错误:3 http://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease 连接失败 [IP: 202.141.160.110 80] 错误:4 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed InRelease 连接失败 [IP: 202.141.160.110 80] 错误:5 http://mirrors.ustc.edu.cn/ubuntu xenial-backports InRelease 连接失败 [IP: 202.141.160.110 80] 错误:6 http://packages.microsoft.com/repos/code stable InRelease 连接失败 [IP: 13.107.253.39 80] 错误:7 http://mirrors.aliyun.com/ubuntu bionic InRelease 连接失败 [IP: 183.60.240.238 80] 错误:8 http://mirrors.aliyun.com/ubuntu bionic-security InRelease 连接失败 [IP: 124.225.10.228 80] 错误:9 http://cn.archive.ubuntu.com/ubuntu bionic InRelease 连接失败 [IP: 45.125.0.6 80] 错误:10 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease 连接失败 [IP: 124.225.10.229 80] 错误:11 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease 连接失败 [IP: 113.113.101.219 80] 错误:12 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease 连接失败 [IP: 124.225.10.226 80] 错误:13 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease 连接失败 [IP: 45.125.0.6 80] 错误:14 http://security.ubuntu.com/ubuntu bionic-security InRelease 连接失败 [IP: 185.125.190.83 80] 命中:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease 命中:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease 命中:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease 命中:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease 命中:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-proposed InRelease 错误:20 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease 连接失败 [IP: 45.125.0.6 80] 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有 237 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。 W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/bionic/InRelease 连接失败 [IP: 183.60.240.238 80] W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/bionic-security/InRelease 连接失败 [IP: 124.225.10.228 80] W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/bionic-updates/InRelease 连接失败 [IP: 124.225.10.229 80] W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/bionic-proposed/InRelease 连接失败 [IP: 113.113.101.219 80] W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/bionic-backports/InRelease 连接失败 [IP: 124.225.10.226 80] W: 无法下载 http://mirrors.ustc.edu.cn/ubuntu/dists/xenial/InRelease 连接失败 [IP: 202.141.160.110 80] W: 无法下载 http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-security/InRelease 连接失败 [IP: 202.141.160.110 80] W: 无法下载 http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-updates/InRelease 连接失败 [IP: 202.141.160.110 80] W: 无法下载 http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-proposed/InRelease 连接失败 [IP: 202.141.160.110 80] W: 无法下载 http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-backports/InRelease 连接失败 [IP: 202.141.160.110 80] W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/bionic/InRelease 连接失败 [IP: 45.125.0.6 80] W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 连接失败 [IP: 45.125.0.6 80] W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 连接失败 [IP: 45.125.0.6 80] W: 无法下载 http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 连接失败 [IP: 185.125.190.83 80] W: 无法下载 http://packages.microsoft.com/repos/code/dists/stable/InRelease 连接失败 [IP: 13.107.253.39 80] W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
03-20
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值