1. 程式人生 > >Ubuntu : GPG簽名驗證錯誤 解決之道sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6DFBCBAE

Ubuntu : GPG簽名驗證錯誤 解決之道sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6DFBCBAE

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys $Key

Where $key == the gpg key id. The key id is shown in the error message you get when running apt-get update after adding a new repository. For example:

GPG error: http://download.virtualbox.org karmic Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DCF9F87B6DFBCBAE

執行命令:sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6DFBCBAE


出現以下錯誤提示:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 6DFBCBAE
gpg: requesting key 6DFBCBAE from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

DCF9F87B6DFBCBAE is the key ID for the virtualbox karmic repository.

解決辦法,執行如下命令:
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys DCF9F87B6DFBCBAE