apt-get更新从上周五开始失败



在我的ubuntu主机上,当我要运行apt-get update命令时,我从05/06/2022开始得到这样的失败。它之前工作得很好。

你知道是什么导致了这样的失败吗?

谢谢。杰克

apt-get update
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:2 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]
Ign:3 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
Err:3 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
403  Forbidden [IP: 216.58.194.206 80]
Get:4 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [21.0 kB]
...
Ign:22 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en
Err:13 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en
403  Forbidden [IP: 91.189.91.38 80]
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:15 http://security.ubuntu.com/ubuntu xenial-security/restricted i386 Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages
Ign:22 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
...
Ign:30 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Err:29 http://us.archive.ubuntu.com/ubuntu xenial/universe Translation-en
403  Forbidden
Ign:30 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Fetched 28.6 MB in 16s (1,720 kB/s)
Reading package lists... Done
E: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages  403  Forbidden [IP: 216.58.194.206 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/i18n/Translation-en  403  Forbidden [IP: 91.189.91.38 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/universe/i18n/Translation-en  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.

您有两个错误:apt-translation和Google repository。

禁用翻译:

echo "Acquire::Languages { "none"; };" |sudo tee -a /etc/apt/apt.conf

然后在您的sources.list中禁用(临时)Google存储库

最新更新