No WLAN after sudo apt-get upgrade

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
OCB73
Posts: 26
Joined: Sunday 17 January 2016 20:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Austria
Contact:

No WLAN after sudo apt-get upgrade

Post 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
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: No WLAN after sudo apt-get upgrade

Post 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
OCB73
Posts: 26
Joined: Sunday 17 January 2016 20:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Austria
Contact:

Re: No WLAN after sudo apt-get upgrade

Post 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
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: No WLAN after sudo apt-get upgrade

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest