GPG错误,签名公钥不可用尝试了很多


10

apt-get更新返回:

W: GPG error: http://pl.archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://pl.archive.ubuntu.com trusty-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: GPG error: http://deb.torproject.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EE8CBC9E886DDD89
W: GPG error: http://security.ubuntu.com trusty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991

我从旧问题中尝试了许多推荐的解决方案,但似乎无济于事。

  • 须藤apt-get clean

  • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5(包含所有丢失的密钥)

  • 我安装了lauchpad-getkeys应该可以自动还原密钥

有任何想法吗?


谢谢,但是如上所述,我没有运气就尝试了--recv-keys。
2014年

请在sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
–sмurf

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ux3Y2CVCoP --no-auto-check-trustdb --trust-model always (已整理的存储库列表) gpg: keyblock resource /etc/apt/trusted.gpg.d/xorg-edgers-ppa.gpg: resource limit gpg: keyblock resource /etc/apt/trusted.gpg.d/yktooo-ppa.gpg: resource limit gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1
亚当


1
@isomorphismes NOPE。该特定密钥40976EAF437D05B5非常顽固且难以修复,因此Q 13065仅涵盖OP尝试过多次的情况。就像当我需要梅花螺丝刀时,您给了我一把Pozidriv螺丝刀一样。;)
语法错误

Answers:


2

您可能受到错误1263540的影响。我建议您尝试:

  1. 须藤apt-get clean
  2. sudo mv / var / lib / apt / lists /var/lib/apt/lists.old
  3. mkdir -p / var / lib / apt /列表/部分
  4. 删除/etc/apt/trusted.gpg.d/中的所有0个长度文件
  5. sudo apt-get更新

如果不起作用,请还原在步骤2中备份的/ var / lib / apt / lists。

资源


修复它:)不确定按照您的步骤操作是否有帮助,因为之后我仍然遇到相同的问题。似乎已完成的工作是删除/etc/apt/trusted.gpg.d中的yktooo-ppa.gpg,即使它的长度不是0。我之所以选择它,是因为它早于上面提到的资源限制gpg出现了:keyblock资源/etc/apt/trusted.gpg.d/yktooo-ppa.gpg
亚当

我添加了另一个存储库,错误已返回。看来是与您链接到的错误相同的错误:(希望他们尽快解决
Adam

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.