Posted by on 2015年8月23日

执行apt-get update

sudo apt-get update
Ign trusty InRelease
Ign trusty InRelease

Ign trusty-security InRelease
Hit trusty Release.gpg
Get:1 trusty Release.gpg [72 B]
Hit trusty-security Release.gpg
Hit trusty Release
Hit trusty Release
Ign trusty Release
Hit trusty-security Release
Hit trusty/partner Sources
Ign trusty/main Sources/DiffIndex
Hit trusty-security/main Sources
Hit trusty/partner amd64 Packages
Ign trusty/main amd64 Packages/DiffIndex
Hit trusty-security/universe Sources
Hit trusty/partner i386 Packages
Ign trusty/main i386 Packages/DiffIndex
Hit trusty-security/multiverse Sources
Hit trusty-security/main amd64 Packages
Hit trusty-security/universe amd64 Packages
Ign trusty/partner Translation-en
Hit trusty/main Sources
Hit trusty-security/multiverse amd64 Packages
Hit trusty/main amd64 Packages
Hit trusty-security/main i386 Packages
Hit trusty/main i386 Packages
Hit trusty-security/universe i386 Packages
Hit trusty-security/multiverse i386 Packages
Hit trusty-security/main Translation-en
Hit trusty-security/multiverse Translation-en
Hit trusty-security/universe Translation-en
Ign trusty/main Translation-en_US
Ign trusty/main Translation-en
Fetched 72 B in 6s (10 B/s)
Reading package lists... Done


W: GPG error: trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXXXXXXXXX (#XXXX为PUBKEY


执行:apt-key adv --recv-keys --keyserver XXXXXX(#XXX为上面显示的PUBKEY


Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.4nKa9OOenR --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver XXXXXXXXXXXXX
gpg: requesting key 3E5C1192 from hkp server
gpg: key XXXXXXXXX: public key "Ubuntu Extras Archive Automatic Signing Key <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1