在Kali Linux2.0中添加有效浑娜,可推廣至Debian系統(tǒng)。
當(dāng)添加新的源后式散,進(jìn)行apt-get update后筋遭,可能會(huì)出現(xiàn)以下問題:
Get:5 http://xxxxxx
Err:5 http://xxxxxx
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY xxxxxxxx('公鑰編碼')
并且伴隨出現(xiàn)
E: The repository 'http://xxxxxx‘ is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
解決辦法:
將公鑰添加至服務(wù)器,即終端中輸入
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys '公鑰編碼'
添加成功后終端輸出為
gpg: key '公鑰編碼': public key "xxxxxx" imported
gpg: Total number processed: 1
gpg:? ? ? ? ? ? ? ? ? ? ? ? imported: 1
祝各位好運(yùn)暴拄!