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

  • 相关阅读:
    WPF学员管理系统
    dotnet-千星项目OpenAuthNet基于NetCore21的快速开发框架
    MVC5仓库管理系统
    华为设备IPC V200R002C0SPC SDK连接demo
    基础界面
    交通建设项目管理信息化系统
    Apache常见interview
    mamcached+(magent+keepalived高可用)搭建及理论概述
    TCP/IP三次挥手,四次断开(精简)
    简述FTP的主动模式与被动模式(精简)
  • 原文地址:https://www.cnblogs.com/horizonli/p/10332000.html
Copyright © 2011-2022 走看看