Ubuntu apt-get 签名无效的问题解决


Ubuntu软件更新的时候经常出现:

W: 验证签名时发生了一个错误。软件仓库将不会更新并将使用先前的索引文件。GPG 错误。http://tw.archive.ubuntu.com karmic-proposed Release: 下列签名无效: BADSIG40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: 验证签名时发生了一个错误。软件仓库将不会更新并将使用先前的索引文件。GPG 错误。http://tw.archive.ubuntu.com karmic-security Release: 下列签名无效: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: 无法下载 http://tw.archive.ubuntu.com/ubuntu/dists/karmic-proposed/Release
W: 无法下载 http://tw.archive.ubuntu.com/ubuntu/dists/karmic-security/Release
W: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。

google了一下,解决方法比较简单:

gpg –keyserver subkeys.pgp.net –recv 40976EAF437D05B5
gpg –export –armor 40976EAF437D05B5 | sudo apt-key add -

或者:

gpg –keyserver hkp://keyserver.ubuntu.com:11371 –recv-key 40976EAF437D05B5&& gpg -a –export40976EAF437D05B5| sudo apt-key add -

把红色部分根据实际情况做一下替换就行了,呵呵.. ….



转载地址:http://www.cppblog.com/blackcat/archive/2010/08/26/124772.aspx



Ubuntu APT认证出现问题!

这几天 我的Ubuntu 更新老是出现APT认证出现问题!

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error:  http://ubuntu.dormforce.net jaunty-security Release: 下列签名无效: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

到网上查了一下

添加公钥的命令:
$ gpg --keyserver subkeys.pgp.net --recv 4F6C1E86
$ gpg --export --armor 4F6C1E86 | sudo apt-key add -


正在读取软件包列表... 完成
W: GPG签名验证错误: http://deb.opera.com unstable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 033431536A423791
W: 您可能需要运行 apt-get update 来解决这些问题



需要把上面两行命令中的“4F6C1E86”替换成“NO_PUBKEY”后面的字串的最后8位,也即:
$ gpg --keyserver subkeys.pgp.net --recv 6A423791
$ gpg --export --armor 6A423791 | sudo apt-key add - 


问题解决!
转载地址: http://hi.baidu.com/apparitor/item/955123e8ee9cdeb22f140bf7

W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed. W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed. W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed. W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed. E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true' E: Sub-process returned an error code
06-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值