无法使用 sudo apt-get update:“NO_PUBKEY 26EB39123AAAAA96”

无法使用 sudo apt-get update:“NO_PUBKEY 26EB39123AAAAA96”

每次我尝试运行时apt-get update,都会收到以下消息:

W: GPG error: http://as-repository.openvpn.net/as/debian focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 26EB39123AAAAA96

我对 Ubuntu 以及 Linux/Terminal 还很陌生,因此尽管我已经查找并尝试了很多解决方案,但似乎无法解决它。

我尝试过,sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 26EB39123AAAAA96结果是:

Executing: /tmp/apt-key-gpghome.U6CXBaZaHQ/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 26EB39123AAAAA96
gpg: keyserver receive failed: No data

我也尝试过sudo apt-key update,结果是这样的:

Warning: 'apt-key update' is deprecated and should not be used anymore!
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key 3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" not changed
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>" not changed
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: key 871920D1991BC93C: "Ubuntu Archive Automatic Signing Key (2018) <[email protected]>" not changed
gpg: Total number processed: 3
gpg:              unchanged: 3

我完全不知所措。我经常使用这台机器,但无法更新我的一些软件包,这导致几个程序无法运行。任何帮助都将不胜感激。我还可以提供任何其他必要的信息。

答案1

发现这有效

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

感谢 https:// www.osmage.com/no-signature-ubuntu/

答案2

看起来密钥仍然有效,因此您应该能够使用以下命令导入它们:gpg --keyserver hkp://keys.gnupg.net --recv-keys {key}

以下是我为每个项目得到的答案:

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 3B4FE6ACC0B21F32
gpg: key 3B4FE6ACC0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys D94AA3F0EFE21092
gpg: key D94AA3F0EFE21092: public key "Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 871920D1991BC93C
gpg: key 871920D1991BC93C: public key "Ubuntu Archive Automatic Signing Key (2018) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

从这里开始,您就可以sudo apt-get update并且一切都应该正常工作。

希望这可以帮助

相关内容