打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
使用apt-get update升级debian系统时报错
错误一:
W: GPG error: http://ftp.us.debian.org squeeze Release: The following signatures
were invalid: BADSIG AED4B06F473041FA Debian Archive Automatic Signing Key (6.0
/squeeze) <ftpmaster@debian.org>
sudo rm /var/lib/apt/lists/* -vf

错误二:
目前使用apt-get update升级debian系统时报错如下:
# apt-get update
获取:1 http://mirrors.163.com stable Release.gpg [1672B]
命中 http://mirrors.163.com stable Release
错误 http://mirrors.163.com stable Release
  
获取:2 http://mirrors.163.com stable Release [104kB]
忽略 http://mirrors.163.com stable Release
忽略 http://mirrors.163.com stable/main Packages/DiffIndex
忽略 http://mirrors.163.com stable/main Sources/DiffIndex
命中 http://mirrors.163.com stable/main Packages
命中 http://mirrors.163.com stable/main Sources
下载 105kB,耗时 0s (130kB/s)
正在读取软件包列表... 完成
W: GPG error: http://mirrors.163.com stable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY AED4B06F473041FA NO_PUBKEY 64481591B98321F9
W: 您可能需要运行 apt-get update 来解决这些问题



解决方法如下:
使用gpg --keyserver 获取公钥
# gpg --keyserver pgpkeys.mit.edu --recv-key AED4B06F473041FA
gpg: requesting key 473041FA from hkp server pgpkeys.mit.edu
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 473041FA: public key "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
# gpg -a --export AED4B06F473041FA |  apt-key add -
OK


# gpg --keyserver pgpkeys.mit.edu --recv-key 64481591B98321F9
gpg: requesting key B98321F9 from hkp server pgpkeys.mit.edu
gpg: key B98321F9: public key "Squeeze Stable Release Key <debian-release@lists.debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
# gpg -a --export 64481591B98321F9 |  apt-key add -
OK


再次执行apt-get update成功
# apt-get update
获取:1 http://mirrors.163.com stable Release.gpg [1672B]
获取:2 http://mirrors.163.com stable Release [104kB]
忽略 http://mirrors.163.com stable/main Packages/DiffIndex
忽略 http://mirrors.163.com stable/main Sources/DiffIndex
命中 http://mirrors.163.com stable/main Packages
命中 http://mirrors.163.com stable/main Sources
下载 104kB,耗时 1s (82.4kB/s)

正在读取软件包列表... 完成

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Debian安装Docker
Proxmox VE 7.x 换源
Debian更新源时出现签名无法进行验证(GPG error)
[转载]关于 Debian 源的一些简单说明
斐讯N1刷入Armbian 更换国内系统源更换国内软件源修改DNS
jellyfin debian安装
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服