2017-02-25 70 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

好的,謝謝,我會嘗試! –