1

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

I have been following this tutorial for a while and I have come across a problem that will not let me finish the setup by running:

sudo apt-get install apache2

What I am trying to do is use my Raspberry Pi as a WiFi pineapple! This tutorial has gone great so far, but when I tried to run this, it gives me this error:

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?

Please Help, Thank You!

1

It looks like the directory you are trying to access does not exist: enter image description here

Try running sudo apt-get update first, this will update your source list to the current directory structure.

0

We've narrowed it down to the likely cause:

  • your apt-get is messed up, most likely because your SD card is messed up.

This can happen for a number of reasons, the most common are:

  • the SD card got corrupted through pulling the plug on the Pi without issuing a software shutdown first
  • the SD card wasn't flashed properly to begin with

I'm willing to bet this is a new Pi with a newly flashed SD card and that you haven't installed any packages with it prior to this. Reflash your SD card, and try this project again.

  • oh yes that is true it is new ok i will do that,but will that delete any data? – Sergei Glimis Mar 2 '17 at 11:44
  • thank you! i will try this and hope it works, it may not and if it doesn't i will come back and tell you! thank you – Sergei Glimis Mar 2 '17 at 11:46
  • Yes, you will lose all your data. Sometimes, the data doesn't get written properly during the flash process, so you DO want to lose all your data. :) – tlhIngan Mar 2 '17 at 16:26
  • ok i will do that if it doesn't work i'll come back. – Sergei Glimis Mar 3 '17 at 1:32
  • i tried and i got a error in disk utility! – Sergei Glimis Mar 3 '17 at 2:31
0

Try running sudo apt-get update. It happened once with me. It seemed to have outdated repository addresses. Running the command above solved my problem.

0

The reason you're not able to download anything is because you set your dnsmasq address, interface, and dhcp-range to point to a static IP. Comment those lines out and reboot. You may also need to restore the interface changes you made under /etc/network/interfaces.

The tutorial shows you how to setup an access point, but doesn't include how to share your internet from the host machine/router.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.