帮助调试 apt-get install apache2 上的 404

帮助调试 apt-get install apache2 上的 404

我正在尝试在 Ubuntu 16.04 上安装 Apache 服务器。我正在关注本指南。因此我跑了:

sudo apt-get update
sudo apt-get install apache2

下面是完整的回溯。我还尝试使用 --fix-missing,正如回溯所建议的那样,但仍然出现 404 错误。我不知道如何调试此类问题。我在浏览器中检查了一些 URL,它们确实不存在。所以我认为 apt 在错误的地方查找。但这很奇怪,因为我刚刚执行了 apt-get update。任何帮助调试此问题的人都将不胜感激。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
0 upgraded, 7 newly installed, 0 to remove and 122 not upgraded.
Need to get 1,383 kB of archives.
After this operation, 5,891 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://za.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-1build1
  404  Not Found [IP: 197.155.77.2 80]
Err:2 http://za.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1-ldap amd64 1.5.4-1build1
  404  Not Found [IP: 197.155.77.2 80]
Err:3 http://za.archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.1-0 amd64 5.1.5-8ubuntu1
  404  Not Found [IP: 197.155.77.2 80]
Err:4 http://za.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-bin amd64 2.4.18-2ubuntu3.14
  404  Not Found [IP: 197.155.77.2 80]
Err:5 http://za.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.14
  404  Not Found [IP: 197.155.77.2 80]
Ign:6 http://za.archive.ubuntu.com/ubuntu xenial-updates/main i386 apache2-data all 2.4.18-2ubuntu3.14
Err:7 http://za.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.14
  404  Not Found [IP: 197.155.77.2 80]
Err:6 http://za.archive.ubuntu.com/ubuntu xenial-updates/main i386 apache2-data all 2.4.18-2ubuntu3.14
  404  Not Found [IP: 197.155.77.2 80]
E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/a/apr-util/libaprutil1-dbd-sqlite3_1.5.4-1build1_amd64.deb  404  Not Found [IP: 197.155.77.2 80]

E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/a/apr-util/libaprutil1-ldap_1.5.4-1build1_amd64.deb  404  Not Found [IP: 197.155.77.2 80]

E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/l/lua5.1/liblua5.1-0_5.1.5-8ubuntu1_amd64.deb  404  Not Found [IP: 197.155.77.2 80]

E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-bin_2.4.18-2ubuntu3.14_amd64.deb  404  Not Found [IP: 197.155.77.2 80]

E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-utils_2.4.18-2ubuntu3.14_amd64.deb  404  Not Found [IP: 197.155.77.2 80]

E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-data_2.4.18-2ubuntu3.14_all.deb  404  Not Found [IP: 197.155.77.2 80]

E: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2_2.4.18-2ubuntu3.14_amd64.deb  404  Not Found [IP: 197.155.77.2 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

要么您使用了代理并且被阻止访问他们,要么他们的服务器正在维护或不稳定。

相关内容