2017-02-25 71 views
-1

我一直跟着教程,我现在无法通过运行完成它:树莓派sudo易于得到安装的Apache2给出错误(404未找到)

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? 
+0

这个Q不是针对StackOverflow定义的编程。它可能更适合于S.E.相关网站http://raspberrypi.stackexchange.com/或http://superuser.com。使用Q底部的'flag'链接并请主持人移动它。请不要在2个不同的网站上发布相同的Q.在此处发布更多Q​​值之前,请阅读http://stackoverflow.com/help/how-to-ask http://stackoverflow.com/help/dont-ask和http://stackoverflow.com/help/mcve。祝你好运。 – shellter

+0

好的谢谢shellter! –

回答

1

需要更新软件包列表

sudo apt-get update 
sudo apt-get upgrade 

如果这样做了:

sudo reboot 

现在重试apache2安装。

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

+0

当我运行它时,它实际上给出了类似的错误!我该怎么办? –

+0

尝试远程升级: “sudo apt-get dist-upgrade” 并查看是否有效。如果没有,可能会有问题,适合 –

+0

好的,谢谢,我会尝试! –