无法摆脱 apt 中的 GPG 错误

And*_*nek 6 server apt 14.04

在你标记这个重复之前,请听我说:

当我运行时,sudo apt-get update我收到以下经典错误:

W: GPG error: http://de.archive.ubuntu.com trusty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
Run Code Online (Sandbox Code Playgroud)

所以我尝试的第一件事当然是

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
Run Code Online (Sandbox Code Playgroud)

它用新签名更新了密钥,但没有解决 GPG 错误。如果我再次运行它,密钥保持不变。

我做了一些研究(在这里阅读了大约 10 个问题,全部标记为重复)并尝试删除/var/lib/apt/listshttps://askubuntu.com/a/64544/43951),但也没有这样做。

如果我跑

sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update
Run Code Online (Sandbox Code Playgroud)

我没有收到签名错误,但散列错误:

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages: Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages: Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages: Hash Sum mismatch
Run Code Online (Sandbox Code Playgroud)

Wil*_*ilf 4

尝试不同的镜像,例如非区域特定的镜像http://archive.ubuntu.com此处介绍了如何执行此操作。

您还可以在 Wiki 上找到更多镜像。