Debian

為什麼在為 lenny-backports 執行 apt-update 時出現 GPG 錯誤?

  • July 5, 2011

好的,所以我正在嘗試升級(如果你可以這樣稱呼它)到 lenny-backports,如此處所示但我在執行時遇到了這個錯誤apt-get update

W: GPG error: http://backports.debian.org lenny-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A*numbers and letters*A
W: You may want to run apt-get update to correct these problems

我添加到 sources.list 的行如下:

deb      http://backports.debian.org/debian-backports lenny-backports main

正如 Womble 在上一個問題中所問的那樣,無論那是什麼,這裡都是 debian-archive-keyring 的版本。

dpkg -l debian-archive-keyring
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                       Version                    Description
+++-==========================-==========================-====================================================================
ii  debian-archive-keyring     2009.01.31                 GnuPG archive keys of the Debian archive

您的 debian-archive-keyring 軟體包版本已過期。您需要將它升級到 lenny 中可用的最新版本——apt-get install debian-archive-keyring這樣就可以了。

試試這個

gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C
gpg --export 16BA136C | apt-key add -

引用自:https://serverfault.com/questions/287135