Raspberry pi sudo apt-get install apache2给出错误(404 Not Found)

时间:2017-02-25 21:49:10

标签: linux ssh raspberry-pi apache2 raspberry-pi2

我一直在关注本教程,现在无法通过运行完成它:

https://www.youtube.com/watch?v=T3s9KYCU3tE

sudo apt-get install apache2

我要做的是基本上将我的覆盆子pi变成wifi菠萝!到目前为止,本教程进展顺利,但是当我运行它时,它给了我这个错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 ssl-cert
Suggested packages:
apache2-doc apache2-suexec-pristine apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 ssl-cert
0 upgraded, 10 newly installed, 0 to remove and 256 not upgraded.
Need to get 1,750 kB of archives.
After this operation, 5,241 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 apache2-bin apache2-utils apache2-data apache2 ssl-cert
Install these packages without verification? [y/N] y
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libapr1 armhf 1.5.1-3
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1 armhf 1.5.4-1
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1-dbd-sqlite3 armhf 1.5.4-1
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1-ldap armhf 1.5.4-1
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main liblua5.1-0 armhf 5.1.5-7.1
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-bin armhf 2.4.10-10+deb8u7
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-utils armhf 2.4.10-10+deb8u7
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-data all 2.4.10-10+deb8u7
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2 armhf 2.4.10-10+deb8u7
404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main ssl-cert all 1.0.35
404  Not Found
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr/libapr1_1.5.1-3_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr-util/libaprutil1_1.5.4-1_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr-util/libaprutil1-dbd-sqlite3_1.5.4-1_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr-util/libaprutil1-ldap_1.5.4-1_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/l/lua5.1/liblua5.1-0_5.1.5-7.1_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-bin_2.4.10-10+deb8u7_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-utils_2.4.10-10+deb8u7_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-data_2.4.10-10+deb8u7_all.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2_2.4.10-10+deb8u7_armhf.deb  404  Not Found

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/s/ssl-cert/ssl-cert_1.0.35_all.deb  404  Not Found

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

1 个答案:

答案 0 :(得分:2)

需要更新包列表

sudo apt-get update
sudo apt-get upgrade

完成后:

sudo reboot

现在重试apache2安装。

谢谢, 希望这会有所帮助。