題 apt-get update報告GPG錯誤


這就是我做的事情 apt-get update

Get:1 http://security.debian.org stretch/updates InRelease [68.2 kB]       
Ign:1 http://security.debian.org stretch/updates InRelease                     
Get:2 http://ftp.bme.hu/debian stretch InRelease [175 kB]
Get:3 http://ftp.cz.debian.org/debian stretch-updates InRelease [88.5 kB]
Ign:2 http://ftp.bme.hu/debian stretch InRelease                  
Ign:3 http://ftp.cz.debian.org/debian stretch-updates InRelease
Fetched 332 kB in 1s (175 kB/s)
Reading package lists... Done
W: GPG error: http://security.debian.org stretch/updates InRelease: At least one invalid signature was encountered.
W: The repository 'http://security.debian.org stretch/updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ftp.bme.hu/debian stretch InRelease: At least one invalid signature was encountered.
W: The repository 'http://httpredir.debian.org/debian stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ftp.cz.debian.org/debian stretch-updates InRelease: At least one invalid signature was encountered.
W: The repository 'http://httpredir.debian.org/debian stretch-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

這是我的 sources.list

deb http://httpredir.debian.org/debian/ stretch main non-free contrib
deb-src http://httpredir.debian.org/debian/ stretch main non-free contrib

deb http://security.debian.org/ stretch/updates main non-free contrib
deb http://httpredir.debian.org/debian/ stretch-updates main non-free contrib

我該如何解決?我已經嘗試過這些建議了 這裡。


4
2017-12-25 14:47


起源


嘗試 sudo apt-key update && sudo apt-get update - GAD3R
嘗試過,沒有改變任何事情。 - user2656304
跑 sudo apt-get dist-upgrade - GAD3R
是的,升級解決了問題。由於GPG錯誤,我很謹慎。謝謝你的幫助! - user2656304


答案:


從評論:升級包解決了問題:

sudo apt-get update && sudo apt-get dist-upgrade

0
2017-12-25 19:05





Debian已經部署了新的密鑰來簽署他們的軟件包和列表,以解決您需要最新版本的“debian-archive-keyring”的錯誤。升級那個包。

# apt-get install debian-archive-keyring

2
2017-12-25 21:04



這樣做,它沒有幫助。 - user2656304