keithellis
Posts: 142
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

wifi not working after apt-get upgrade

Thu Nov 17, 2016 10:45 pm

I have done this three times now and get the same issue every time.

Download and flash the latest Raspbian Jessie lite - September 2016
Plug SD card into a Pi2, connect to ethernet and boot up
edit /etc/wpa_supplicant/wpa_supplicant.conf
add the following

Code: Select all

network={
    ssid="myssid1"
    psk="mywifipasscode"
}
network={
    ssid="myssid2"
    psk="mywifipasscode"
}
Disconnect lan cable, reboot and ssh in via wifi connection. All is working fine.

Code: Select all

sudo apt-get update
sudo apt-get install python3 python3-dev python3-pip git
pip2 install thingspeak
#Download and compile ffmpeg
reboot, all is still working

Code: Select all

sudo apt-get upgrade
reboot, wifi is no longer working

Code: Select all

kellis@raspberrypi:~ $ ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:a3:c6:3f  
          inet addr:192.168.54.132  Bcast:192.168.54.255  Mask:255.255.255.0
          inet6 addr: fe80::e0f7:8e2:6ab3:308a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:382 errors:0 dropped:30 overruns:0 frame:0
          TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:87572 (85.5 KiB)  TX bytes:20817 (20.3 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0b:81:9b:8c:30  
          inet6 addr: fe80::ba1a:4410:4526:9e3d/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Code: Select all

kellis@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

kellis@raspberrypi:~ $ iwconfig
wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

Code: Select all

kellis@raspberrypi:~ $ cat /etc/network/interfaces
# 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

Code: Select all

kellis@raspberrypi:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf 
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
	ssid="myssid1"
	psk="mypsk1"
}

#network={
#	ssid="myssid2"
#	psk="mypsk2"
#}

How do I get wifi working again?
Regards,
Keith

wh7qq
Posts: 1531
Joined: Thu Oct 09, 2014 2:50 am

Re: wifi not working after apt-get upgrade

Fri Nov 18, 2016 3:13 am

network={
ssid="myssid1"
psk="mypsk1"
}
Is this how your file actually looks or are you using "myssid1" and "mypsk1" as dummy valules just for security here on the forum?

You must change these values to match your actual network and the values to put in are to be found in the config pages of your router's web interface.

keithellis
Posts: 142
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Re: wifi not working after apt-get upgrade

Sun Nov 20, 2016 3:26 pm

wh7qq wrote: Is this how your file actually looks or are you using "myssid1" and "mypsk1" as dummy valules just for security here on the forum?

You must change these values to match your actual network and the values to put in are to be found in the config pages of your router's web interface.
I have the correct settings in here, I changed then just for the forum. Anyway, how do you know these are not my settings ;-)

The settings work before the 'apt-get upgrade' and without changing anything after the upgrade it stops working :-(

wh7qq
Posts: 1531
Joined: Thu Oct 09, 2014 2:50 am

Re: wifi not working after apt-get upgrade

Tue Nov 22, 2016 7:22 pm

keithellis wrote: I have the correct settings in here, I changed then just for the forum. Anyway, how do you know these are not my settings ;-)
The settings work before the 'apt-get upgrade' and without changing anything after the upgrade it stops working :-(
I don't know...I was asking you. I just know they won't work and they were what you posted. Go to the sticky thread on this forum on wifi problems.

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: wifi not working after apt-get upgrade

Tue Nov 22, 2016 7:29 pm

wh7qq wrote: I don't know...I was asking you. I just know they won't work and they were what you posted.
You don't know that at all.

As he mentioned, those could be his correct values.
If this post appears in the wrong forums category, my apologies.

jbudd
Posts: 1641
Joined: Mon Dec 16, 2013 10:23 am

Re: wifi not working after apt-get upgrade

Tue Nov 22, 2016 7:47 pm

I've seen a few reports of wifi problems after apt-get upgrade, but my Pi has never had this trouble.

You said that you unplugged the ethernet cable, but your code
kellis@raspberrypi:~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:a3:c6:3f
inet addr:192.168.54.132 Bcast:192.168.54.255 Mask:255.255.255.0
inet6 addr: fe80::e0f7:8e2:6ab3:308a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
shows an IP address on eth0

I wonder if this is relevant - if the Pi thinks it has ethernet, I am not sure if it will enable wifi.

If you start again with a fresh installation, I suggest trying

Code: Select all

sudo apt-get update && sudo apt-get upgrade
as the first step before setting up wifi and installing packages

wh7qq
Posts: 1531
Joined: Thu Oct 09, 2014 2:50 am

Re: wifi not working after apt-get upgrade

Wed Nov 23, 2016 8:23 pm

Martin Frezman wrote:
wh7qq wrote: I don't know...I was asking you. I just know they won't work and they were what you posted.
You don't know that at all.

As he mentioned, those could be his correct values.
Not very likely but I suppose some actually do use "password" :o

User avatar
HawaiianPi
Posts: 6212
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: wifi not working after apt-get upgrade

Wed Nov 23, 2016 8:44 pm

keithellis wrote:...

Code: Select all

sudo apt-get upgrade
reboot, wifi is no longer working
...
Did you update the package list (sudo apt-get update) before the upgrade?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: wifi not working after apt-get upgrade

Wed Nov 23, 2016 10:17 pm

wh7qq wrote:
Martin Frezman wrote:
wh7qq wrote: I don't know...I was asking you. I just know they won't work and they were what you posted.
You don't know that at all.

As he mentioned, those could be his correct values.
Not very likely but I suppose some actually do use "password".
I think studies have shown that it is far and away the most common password in use.
If this post appears in the wrong forums category, my apologies.

User avatar
HawaiianPi
Posts: 6212
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: wifi not working after apt-get upgrade

Wed Nov 23, 2016 10:36 pm

wh7qq wrote:Not very likely but I suppose some actually do use "password" :o
Martin Frezman wrote:I think studies have shown that it is far and away the most common password in use.
I thought it was 1234...

That reminds me of a funny story from the way back when days of early home computers (Apple, Atari, Commodore). I had a friend who used to go on about how he was going to learn all about computers and become the world's greatest hacker. He was also working on a game program on his Commodore 64 at the time, so I made a few changes to his code, and he was greeted by the prompt "Enter password" when he tried to run it.

I also took advantage of a particular quirk of the Commodore system to prevent him from listing his code and removing my alterations.

At first he was upset, but I taunted him about his elite hacking skills and challenged him to defeat what I had done. He spent days trying to figure out what I would have used as a password, names, birthdays, and lots of other personal references, forwards, backwards, etc. Finally he gave up, admitted defeat and asked me for the password.

Well I sighed, shook my head in disappointment and said, "Dude, you won't make a very good hacker if you can't even follow simple directions."

He asked, "What do you mean by that?"

And I asked him, "What does it say on your screen right now?"

Enter passw... [ARGHH!!] :oops: :P :evil:
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
davidcoton
Posts: 5835
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: wifi not working after apt-get upgrade

Wed Nov 23, 2016 11:01 pm

Location: 345th cell on the right of the 210th row of L2 cache

User avatar
HawaiianPi
Posts: 6212
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: wifi not working after apt-get upgrade

Thu Nov 24, 2016 3:58 am

davidcoton wrote:See also the password is secret
LOL! That's awesome. The I.T. department was obviously messing with customer service when they chose that for a password.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

FalconFour
Posts: 19
Joined: Sun Jun 28, 2015 3:57 pm

Re: wifi not working after apt-get upgrade

Sun Feb 09, 2020 10:15 am

All this damn bantering about whether the guy masked his real SSID and password in his forum-paste, and nobody has actually contributed anything useful. What's this, a full page of back and forth off-topic banter about "he-he ha-ha u didnt use "password" did you hehe ahaha" and I had to sit here reading it while suffering with the EXACT problem OP is mentioning -- the "ESSID:off/any" with a clean install and doing an "apt-get update"/"upgrade" cycle (that took about an hour).

Now 4 years later without a helpful conclusion and the problem still at play, does anyone have anything to offer?

Linux WiFi is so incredibly obtuse and opaque, I can't even understand how to diagnose it. Why would I want a utility called "rfkill" on my system by default? At least it says "unblocked" for Soft and Hard...

FalconFour
Posts: 19
Joined: Sun Jun 28, 2015 3:57 pm

Re: wifi not working after apt-get upgrade

Sun Feb 09, 2020 10:43 am

I bashed my head repeatedly into the Google and found the problem.

The firmware bundle "realtek-firmware" was updated by the apt-get process. The firmware for my dongle (rtl8192cu) was updated as a result. Seems that for some reason, apt is picking up an unofficial firmware bundle out of sync with the main Debian tree. The version I picked up was "firmware-realtek:armhf (1:20190114-1+rpt2, 1:20190114-1+rpt4)", but the latest version in the Debian tree is 20161130.

I downloaded that .deb, stuck it on a USB drive, and ran a "dpkg -i firmw~1.deb" on it. It "downgraded" firmware-realtek to that Debian version.

I rebooted, and WiFi was back.

Grab it here: https://packages.debian.org/stretch/all ... k/download

And yes, I did necro-bump this thread, because it comes up in Googling, and the thread was without resolve. Now future help-seekers can find an answer. There is no reason to hate on necro-bumping, so don't do it. Thanks for not doing auto-locks. <3

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 28358
Joined: Sat Jul 30, 2011 7:41 pm

Re: wifi not working after apt-get upgrade

Sun Feb 09, 2020 11:23 am

FalconFour wrote:
Sun Feb 09, 2020 10:43 am
I bashed my head repeatedly into the Google and found the problem.

The firmware bundle "realtek-firmware" was updated by the apt-get process. The firmware for my dongle (rtl8192cu) was updated as a result. Seems that for some reason, apt is picking up an unofficial firmware bundle out of sync with the main Debian tree. The version I picked up was "firmware-realtek:armhf (1:20190114-1+rpt2, 1:20190114-1+rpt4)", but the latest version in the Debian tree is 20161130.

I downloaded that .deb, stuck it on a USB drive, and ran a "dpkg -i firmw~1.deb" on it. It "downgraded" firmware-realtek to that Debian version.

I rebooted, and WiFi was back.

Grab it here: https://packages.debian.org/stretch/all ... k/download

And yes, I did necro-bump this thread, because it comes up in Googling, and the thread was without resolve. Now future help-seekers can find an answer. There is no reason to hate on necro-bumping, so don't do it. Thanks for not doing auto-locks. <3
There is every reason to hate on necrobumping, because in the vast majority of cars, it's a waste of time.

Closing, apparently solved.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “Troubleshooting”