Debian apt update 提示 由于没有公钥,无法验证下列签名...

$ sudo apt update
忽略:1 http://mirrors.aliyun.com/debian stretch InRelease
命中:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease
命中:3 http://mirrors.aliyun.com/debian stretch-updates InRelease
错误:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A
命中:4 http://mirrors.aliyun.com/debian stretch Release
错误:3 http://mirrors.aliyun.com/debian stretch-updates InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
错误:5 http://mirrors.aliyun.com/debian stretch Release.gpg
  由于没有公钥,无法验证下列签名: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY EF0F382A1A7B6500
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成

尝试了网上好多办法,更换各种镜像源,gpg 下载key都不行;最后发现 更新debian-archive-keyring这个软件包,就一切问题解决了
安装新版本debian-archive-keyring

$ sudo apt-get install debian-archive-keyring
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包将被升级:
  debian-archive-keyring
升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 160 个软件包未被升级。
需要下载 73.9 kB 的归档。
解压缩后会消耗 30.7 kB 的额外空间。
获取:1 http://mirrors.aliyun.com/debian stretch/main amd64 debian-archive-keyring all 2017.5+deb9u1 [73.9 kB]
已下载 73.9 kB,耗时 0秒 (184 kB/s)
(正在读取数据库 ... 系统当前共安装有 72749 个文件和目录。)
正准备解包 .../debian-archive-keyring_2017.5+deb9u1_all.deb  ...
正在将 debian-archive-keyring (2017.5+deb9u1) 解包到 (2017.5) 上 ...
正在设置 debian-archive-keyring (2017.5+deb9u1) ...

再次update

$ sudo apt update
忽略:1 http://mirrors.aliyun.com/debian stretch InRelease
命中:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease
命中:3 http://mirrors.aliyun.com/debian stretch-updates InRelease
命中:4 http://mirrors.aliyun.com/debian stretch Release
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有 160 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。

成功

  • 9
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值