2

I have recently been unable to connect to wifi with my raspberry pi 3 (model B). I have tried a number of solutions to no avail.

The networks button on the upper banner says "connection to dhcpcd lost" or "no wireless interfaces found".

However, when I try iwlist wlan0 scan to search for networks, I can see dozens of wifi networks, including my own. I then go to sudo nano /etc/wpa_supplicant/wpa_supplicant.conf and add my network and password at the bottom of the file. Even following a reboot I have no networks displaying on the upper bar and no wifi connection.

How come in the terminal my raspberry pi recognizes networks, but not in the GUI? How can I resolve this problem to be able to connect?

Any help would be much appreciated.

a.powell
  • 71
  • 4

3 Answers3

2

Instead of editing the wpa_supplicant.conf file, try running raspi-config (or sudo raspi-config) in terminal and choose the option to setup your WiFi connection.

My guess here is that you haven't specified your country yet, which is something you need to add to your wpa_supplicant.conf file. Once you run raspi-config to configure your network connection, if you haven't done it it, you will be prompted to specify your country.

In the end, your wpa_supplicant.conf file should look something like this:

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid="YourWiFiSSID"
    psk="yourSecretWiFipassword"
}

If the previous doesn't work, then try this

Type ifconfig or ip a to see which network interfaces are enabled. In your case, you're probably looking for wlan0.

You can try to enable all wireless devices by running rfkill unblock all.

Check for any error messages by typing dmesg or look into the /var/log/syslog file.

David
  • 723
  • 5
  • 22
0

The full answer you can find in this answer .

You can configure your Wi-Fi connection via raspi-config.

Follow next steps:

  1. Go to Raspiconfig, just type in terminal: $ sudo raspi-config

And configuration window will open and looks like the picture below: enter image description here 2. Go to Network Options and choose Wi-Fi.

  1. Fill name and password of the Wi-Fi. SSID - name of your Wi-Fi, Password - password to it.

  2. To be sure, that all configuration work as expected - reboot your Raspberry sudo reboot

romankh3
  • 165
  • 1
  • 1
  • 13
0

I think that the correct answer has already been given, but it may be that there's something else going on. Have you looked into the system log to see if there's any useful information there? run journalctl and then scroll through looking for dhcpcd and wpa_supplicant log entries.

bls
  • 520
  • 3
  • 5