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

Ada*_*dam 10 updates apt 14.04

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
Run Code Online (Sandbox Code Playgroud)

我已经尝试了许多来自旧问题的推荐解决方案,但似乎没有任何帮助。

  • sudo apt-get clean

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

  • 我安装了lauchpad-getkeys,它应该自动恢复密钥

有任何想法吗?

sмu*_*urf 2

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

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

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

来源