Page 1 of 1

No WLAN after sudo apt-get upgrade

Posted: Sunday 19 June 2016 10:34
by OCB73
Good morning!

Today i ve done an update/upgrade on my raspi.
After restarting no wlan-connection is established.

I ve checked /etc/network/interfaces but all is like
it was. Any ideas?

Thats my /etc/network/interfaces:

Code: Select all

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp

wpa-ssid "xxxxx"
wpa-psk "xxxxx"
Regards
Oliver

Re: No WLAN after sudo apt-get upgrade

Posted: Monday 20 June 2016 20:51
by georgesattali
Hello Oliver,
here's the content of my /etc/network/interfaces (I never changed it, it's the default), but instead of modifying /etc/network/interfaces, I modify /etc/wpa_supplicant/wpa_supplicant.conf (second file below) - I followed explanations found on Internet.

pi@raspberrypi:~ $ cat /etc/network/interfaces

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
pi@raspberrypi:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FR
network={
    ssid="put your ssid here"
    scan_ssid=1
    key_mgmt=WPA-PSK
    psk="put your password here"
}
NB : country=FR has been added automatically by sudo raspi-config (Internationalization options / Wifi country).

Regards,
GD

Re: No WLAN after sudo apt-get upgrade

Posted: Monday 20 June 2016 21:16
by OCB73
Hello and thx for your answer.

I will give it try and report the result.
I also did it like explained in the internet but i think there are a few way to setup the WLAN.

Are you using DHCP or a static IP?
If static, configured via your router or raspi?

Regards
Oliver

Re: No WLAN after sudo apt-get upgrade

Posted: Monday 20 June 2016 21:41
by georgesattali
Hi OCB73,
I use DHCP, but I configured my box (box administration, option DHCP or DHCP serveur) so that the same IP adress is always attributed to the 'MAC Adress' of the wifi card of the raspberry).

Usually the box shows the mac adress of any equipment connected to it, you may see it also on the raspberry as the HWaddr given by the command :

Code: Select all

ifconfig
See you,
GD