PGP NO_PUBKEY
Posted horizonli
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PGP NO_PUBKEY相关的知识,希望对你有一定的参考价值。
[email protected] ~ $ sudo apt-get update
Ign http://packages.linuxmint.com rebecca/upstream Translation-en
Ign http://packages.linuxmint.com rebecca/upstream Translation-zh_CN
Fetched 15.4 kB in 21s (706 B/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn‘t be verified because the public key is not available: NO_PUBKEY 5A9A06AEF9CB8DB0
【get pubkey】
[email protected] ~ $ sudo gpg --keyserver subkeys.pgp.net --recv-keys 5A9A06AEF9CB8DB0
gpg: directory `/home/horizon/.gnupg‘ created
gpg: new configuration file `/home/horizon/.gnupg/gpg.conf‘ created
gpg: WARNING: options in `/home/horizon/.gnupg/gpg.conf‘ are not yet active during this run
gpg: keyring `/home/horizon/.gnupg/secring.gpg‘ created
gpg: keyring `/home/horizon/.gnupg/pubring.gpg‘ created
gpg: requesting key F9CB8DB0 from hkp server subkeys.pgp.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
【get pubkey】
[email protected] ~ $ sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0
gpg: requesting key F9CB8DB0 from hkp server keyserver.ubuntu.com
gpg: /home/horizon/.gnupg/trustdb.gpg: trustdb created
gpg: key F9CB8DB0: public key "Launchpad PPA for Ubuntu Wine Team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
【export pubkey】
[email protected] ~ $ gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
gpg: failed to create temporary file `/home/horizon/.gnupg/.#lk0x101b5d0.horizon-pc.25129‘: Permission denied
gpg: keyblock resource `/home/horizon/.gnupg/secring.gpg‘: general error
gpg: failed to create temporary file `/home/horizon/.gnupg/.#lk0x101b670.horizon-pc.25129‘: Permission denied
gpg: keyblock resource `/home/horizon/.gnupg/pubring.gpg‘: general error
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
【import pubkey】
[email protected] ~ $ sudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
OK
[email protected] ~ $ sudo apt-get update
......
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main Sources
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Fetched 30.8 kB in 58s (522 B/s)
Reading package lists... Done
以上是关于PGP NO_PUBKEY的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu apt-update NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
ubuntu apt-get 出现NO_PUBKEY的解决方案
如何信任 apt 存储库:Debian apt-get update 错误公钥不可用:NO_PUBKEY <id> [关闭]
Ubuntu W: GPG error: http://archive.ubuntukey....NO_PUBKEY 8D5A09