User avatar
Mincerafte
Posts: 9
Joined: Wed Nov 22, 2017 6:05 pm

Could not get status from wpa_supplicant?

Wed Nov 22, 2017 6:20 pm

I have a Raspberry Pi 2B, and I'm trying to connect to the Internet with an Ourlink 150M USB Dongle, but when I go to wpa_gui, the message next to Status is: "Could not get status from wpa_supplicant." I've gone around the web and forums looking for answers, but all of them had different solutions, and none of them worked. Here is my current /etc/network/interfaces:

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
And my /etc/wpa_supplicant/wpa_supplicant.conf file:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
I have a Pi tutorial book that tells me to input this into the Terminal:

Code: Select all

network={
ssid="YourSSID"
wep_key0="password12345"
key_mgmt=NONE }
But when I do (replacing the quotes with my information) I get this error message:

Code: Select all

-bash: }: command not found
When I do:

Code: Select all

sudo iwlist wlan0 scan
I can see my network, but for some reason I can't connect to it. Please help!
What? What do you mean it's outdated? I swear it was fine a while ago...

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 6:29 pm

Mincerafte wrote:
Wed Nov 22, 2017 6:20 pm
I have a Pi tutorial book that tells me to input this into the Terminal:

Code: Select all

network={
ssid="YourSSID"
wep_key0="password12345"
key_mgmt=NONE }
You need to add these lines to wpa_supplicant.conf. BUT that implies you are using WEP, not WPA(2)
Are you sure that's correct?

User avatar
Mincerafte
Posts: 9
Joined: Wed Nov 22, 2017 6:05 pm

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:11 pm

So would I say:

Code: Select all

wpa_key0="password12345"
Or is there a different way? Because I just tried wpa_key, but still doesn't work. And I did put the four lines into the wpa_supplicant location
What? What do you mean it's outdated? I swear it was fine a while ago...

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:13 pm

What method does your access point use? WEP, WPA. WPA2, ...

User avatar
Mincerafte
Posts: 9
Joined: Wed Nov 22, 2017 6:05 pm

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:14 pm

Mine uses WPA2
What? What do you mean it's outdated? I swear it was fine a while ago...

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:18 pm

OK, additional question: which OS + version do you use?
Raspbian Jessie, Raspbian Stretch, ...?

User avatar
Mincerafte
Posts: 9
Joined: Wed Nov 22, 2017 6:05 pm

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:23 pm

As I am a complete beginner, I'll just post what

Code: Select all

cat /etc/os-release
gives me:

Code: Select all

PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
What? What do you mean it's outdated? I swear it was fine a while ago...

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:48 pm

Try something like this:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
	ssid="put ssid here"
	psk="put password here"
	key_mgmt=WPA-PSK
}
Not sure if wheezy accepts the country setting.

BTW: if you're new to the Pi I would suggest you dump Wheezy and download the current version of Raspbian at https://www.raspberrypi.org/downloads/

User avatar
Mincerafte
Posts: 9
Joined: Wed Nov 22, 2017 6:05 pm

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 7:56 pm

It works on it! Thank you so much!

As for the Wheezy dumping, what would be the difference?
What? What do you mean it's outdated? I swear it was fine a while ago...

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Could not get status from wpa_supplicant?

Wed Nov 22, 2017 9:20 pm

Wheezy was end of life more than 2 years ago. You will only get security updates. A lot of software was updated and improved in the meantime.
Even its successor (Jessie) was replaced by the current version (Stretch) a couple of months ago.

There have been a lot of changes over the last couple of years.
You will also get better support here and elsewhere if you use a more recent version of Raspbian.

User avatar
Mincerafte
Posts: 9
Joined: Wed Nov 22, 2017 6:05 pm

Re: Could not get status from wpa_supplicant?

Sun Nov 26, 2017 11:35 pm

I see. I got my Pi2B two years ago as a Christmas present, and haven't really used it until recently. I didn't realize so much had changed in 2 years! :shock:
What? What do you mean it's outdated? I swear it was fine a while ago...

Return to “Troubleshooting”