标签:signature conf number proc .net wine lease -- import
horizon@horizon-pc ~ $ 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】
horizon@horizon-pc ~ $ 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】
horizon@horizon-pc ~ $ 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】
horizon@horizon-pc ~ $ 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】
horizon@horizon-pc ~ $ sudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
OK
horizon@horizon-pc ~ $ 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
标签:signature conf number proc .net wine lease -- import
原文地址:https://www.cnblogs.com/horizonli/p/10332000.html