zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    java之 Timer 类的使用以及深入理解
    关于百度Editor富文本编辑器 自定义上传位置
    BufferedInputStream/BufferedOutputStream
    ByteArrayInputStream/ByteArrayOutputStream 学习
    Android之ViewPager 第二课
    Android之ViewPager 第一课
    内存四区模型
    变量的本质
    数据类型的本质
    File、Blob、ArrayBuffer等文件类的对象有什么区别和联系
  • 原文地址:https://www.cnblogs.com/horizonli/p/10332000.html
Copyright © 2011-2022 走看看