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

标签 linux ssh raspberry-pi apache2 raspberry-pi2

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

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

sudo apt-get install apache2

我想做的基本上就是把我的树莓派变成一个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?

最佳答案

需要更新包列表

sudo apt-get update
sudo apt-get upgrade

完成后:

sudo reboot

现在重试 apache2 安装。

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

关于linux - Raspberry pi sudo apt-get install apache2 给出错误(404 Not Found),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42461989/

相关文章:

c++ - MATLAB MEX C++ 文件编译错误 g++ command not found

linux - 通过 SSH 启动一个长时间运行的程序

amazon-web-services - 如何删除/停用当前 PEM 文件并在 AWS 中创建新文件?

python - 如何从 node-red 打开 CV2.frame 窗口? - 执行脚本到 UI 应用程序

c# - Raspberry PI - I2C 不写入数据

c - Linux,无法从串口读取

linux - 如何/在何处为 Vagrant shell 供应商提供 sudo 密码?

c - 如何将 linux 应用程序设置为操作系统中可用的 "global"?

ssh pem 文件、密码和结构脚本

linux - 在启动时、x11 启动之前、USB 填充之后运行脚本