apt-get update 报告 GPG 错误

use*_*304 8 linux debian apt

当我这样做时会发生这种情况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.
Run Code Online (Sandbox Code Playgroud)

这是我的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
Run Code Online (Sandbox Code Playgroud)

我该如何解决?我已经尝试过这里的建议

Jas*_*sen 6

Debian 已经部署了新的密钥来签署他们的软件包和列表,以解决您需要最新版本的“debian-archive-keyring”的错误。升级那个包。

# apt-get install debian-archive-keyring
Run Code Online (Sandbox Code Playgroud)


GAD*_*D3R 4

从评论中:通过升级软件包解决了问题:

sudo apt-get update && sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)