I downloaded the latest version of Jessie Lite (2017-04-10) and followed the setup guide. Wi-fi won't work.

Here is my problem as near as I can figure it out. Wi-Fi details in Jessie are entered into /etc/wpa_supplicant/wpa_supplicant.conf The file originally looks something like this:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Then, when the AP details are input, it looks like this:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ssid="your ssid"
psk="your pwd"

The really important line in /etc/wpa_supplicant/wpa_supplicant.conf is:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 

Which directs control to the file wpa-supplicant in /var/run. My problem is that this file and wpa_supplicant.wlan0.pid, are both present on a fresh Jessie Lite SD card but mysteriously missing when I reboot after entering my routers details.

I can't fathom why entering Wi-Fi details into etc/wpa_supplicant/wpa_supplicant.conf causes files necessary for the Wi-Fi to work to be removed from /var/run?

  • In the meantime Jessie is deprecated and out of support. Have you tried it with up to date Raspbian Buster now? – Ingo Apr 14 '20 at 9:22

My wpa_supplicant.conf file is similar to yours, it contains the line ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev and the file /var/run/wpa_supplicant is missing. However, the wifi connects fine.

I use the commands below to connect, you can give it a try

ifdown wlan0
nano /etc/network/interfaces
    allow-hotplug wlan0
    iface wlan0 inet manual
    wpa-config /etc/wpa_supplicant/wpa_supplicant
systemctl restart networking
systemctl daemon-reload
ifup wlan0
dhcpcd wlan0

Not the answer you're looking for? Browse other questions tagged or ask your own question.