andrewstillie
Posts: 54
Joined: Tue Sep 18, 2012 11:26 am

installing isc-dhcp-server

Thu Dec 05, 2013 10:41 pm

I am following a tutorial at http://www.penguin tutor/news/raspberrypi/wireless a hot spot

At the Add access point and DHCP server software stage I get the following error......




[email protected] / $ sudo apt-get install hostapd isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
hostapd is already the newest version.
The following extra packages will be installed:
isc-dhcp-client isc-dhcp-common
Suggested packages:
resolvconf avahi-autoipd isc-dhcp-server-ldap
The following NEW packages will be installed:
isc-dhcp-server
The following packages will be upgraded:
isc-dhcp-client isc-dhcp-common
2 upgraded, 1 newly installed, 0 to remove and 125 not upgraded.
Need to get 2,433 kB of archives.
After this operation, 1,876 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-client armhf 4.2.2.dfsg.1-5+deb70u3
404 Not Found
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-common armhf 4.2.2.dfsg.1-5+deb70u3
404 Not Found
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-server armhf 4.2.2.dfsg.1-5+deb70u3
404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[email protected] / $

User avatar
DougieLawson
Posts: 35797
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: installing isc-dhcp-server

Thu Dec 05, 2013 10:49 pm

Your RPi isn't connected to your WiFi (and therefore isn't connected to the public Internet).
Or your subnet mask is incorrect.
Or your gateway / routing table is incorrect.
Your WiFi adapter has gone into power saving mode.
Or you cable isn't connected to a live port on your router/switch.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

andrewstillie
Posts: 54
Joined: Tue Sep 18, 2012 11:26 am

Re: installing isc-dhcp-server

Thu Dec 05, 2013 11:05 pm

Ok. I will check again tomorrow.
Could it be something to do with the changes made in the previous step in the interfaces file?


Thanks for you help!

User avatar
DougieLawson
Posts: 35797
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: installing isc-dhcp-server

Thu Dec 05, 2013 11:16 pm

andrewstillie wrote: Could it be something to do with the changes made in the previous step in the interfaces file?
Here's my working sample /etc/network/interfaces

Code: Select all

auto lo
auto eth0
auto wlan0
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp

wpa_roam  /etc/wpa_supplicant/wpa_supplicant.conf
And /etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

network={
  ssid="NETWORKID"
  scan_ssid=1
  psk="redactedpassword"
# proto=RSN
# key_mgmt=WPA-PSK
# pairwise=CCMP TKIP
# group=CCMP TKIP
}
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
rpdom
Posts: 14987
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: installing isc-dhcp-server

Fri Dec 06, 2013 7:03 am

Did you do a

sudo apt-get update

before running the install command?

I suspect not, as the current isc-dhcp-client is 4.2.2.dfsg.1-5+deb70u6, not 4.2.2.dfsg.1-5+deb70u3.
The old one possibly doesn't exist on the server anymore, which is why you get a 404 Not Found error.

andrewstillie
Posts: 54
Joined: Tue Sep 18, 2012 11:26 am

Re: installing isc-dhcp-server

Fri Dec 06, 2013 12:45 pm

Hi Dougie,

Is this the setup that you have for using your Pi as a Wifi-Hotspot or is this the config I need when connecting to my home wifi network.

Cheers

DougieLawson wrote:
andrewstillie wrote: Could it be something to do with the changes made in the previous step in the interfaces file?
Here's my working sample /etc/network/interfaces

Code: Select all

auto lo
auto eth0
auto wlan0
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp

wpa_roam  /etc/wpa_supplicant/wpa_supplicant.conf
And /etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

network={
  ssid="NETWORKID"
  scan_ssid=1
  psk="redactedpassword"
# proto=RSN
# key_mgmt=WPA-PSK
# pairwise=CCMP TKIP
# group=CCMP TKIP
}

andrewstillie
Posts: 54
Joined: Tue Sep 18, 2012 11:26 am

Re: installing isc-dhcp-server

Fri Dec 06, 2013 12:47 pm

I did a "sudo apt-get update" at the start of the process.
it appears that it went wrong when I issued the

sudo apt-get install hostapd isc-dhcp-server

command.



rpdom wrote:Did you do a

sudo apt-get update

before running the install command?

I suspect not, as the current isc-dhcp-client is 4.2.2.dfsg.1-5+deb70u6, not 4.2.2.dfsg.1-5+deb70u3.
The old one possibly doesn't exist on the server anymore, which is why you get a 404 Not Found error.

User avatar
DougieLawson
Posts: 35797
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: installing isc-dhcp-server

Fri Dec 06, 2013 3:14 pm

andrewstillie wrote:Hi Dougie,

Is this the setup that you have for using your Pi as a Wifi-Hotspot or is this the config I need when connecting to my home wifi network.

Cheers
That's the home network version. My experiments to get my Pi running as an access point are on hold.

Code: Select all

auto lo
iface eth0 inet static
address 192.168.xxx.7
gateway 192.168.xxx.1
netmask 255.255.255.0
hostapd /etc/hostapd/hostapd.conf

auto br0
iface br0 inet static
address 192.168.xxx.8
gateway 192.168.xxx.1
netmask 255.255.255.0
bridge_ports eth0 wlan0

iface eth0 inet6 static
address 2001:xxxx:xxxx:xxxx:ba27:ebff:fe00:069e
netmask 64

iface wlan0 inet6 static
address 2001:xxxx:xxxx:xxxx:821f:2ff:fe68:c6af
netmask 64
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “Troubleshooting”