PGP NO_PUBKEY

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

转载于:https://www.cnblogs.com/horizonli/p/10332000.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值