Linux – Error: “failed to connect to wpa_supplicant – wpa_ctrl_open no such file or directory” using netcfg with wpa_supplicant

arch linuxlinuxwpa-supplicant

I'm trying to set up netcfg so that I can finish installing Arch Linux (using the instructions from the Beginners' Guide and netcfg) and I passed over what was meant to be a short step. Open wifi-menu, select network, enter password. After multiple attempts, I decided to edit the profile manually, which yielded no improvement. Eventually I decided to use netfcg with the more familiar wpa_supplicant. My /etc/wpa_supplicant.conf file is as follows:

network={
    ssid="my_ssid"
    #psk="my_wireless_passcode"
    psk="my_wireless_passcode_hex"
}

(Replacing generic names with my actual ssid and psk.)

And my /etc/network.d/wpa_suppl file reads:

CONNECTION='wireless'
DESCRIPTION='A wpa_supplicant configuration based wireless connection'
INTERFACE='wlan0'
SECURITY='wpa-config'
WPA_CONF='/etc/wpa_supplicant.conf'
IP='dhcp'

My ssid is not hidden, wlan0 is the proper interface, and wpa_supplicant works fine on its own, but using netcfg wpa_suppl, it returns failed to connect to wpa_supplicant - wpa_ctrl_open no such file or directory about twelve times before finally telling me the authentication failed. What can I do to fix this?

Best Answer

You are referencing /etc/wpa_supplicant.conf incorrectly, due to an outdated wiki entry.

The configuration file for the wpa_supplicant package was moved to the sub-directory /etc/wpa_supplicant/ a few months back.

Specify the file as /etc/wpa_supplicant/wpa_supplicant.conf in your /etc/network.d/wpa_suppl file.

Package Contents:

etc/
etc/wpa_supplicant/
etc/dbus-1/
etc/dbus-1/system.d/
etc/dbus-1/system.d/wpa_supplicant.conf
etc/wpa_supplicant/wpa_supplicant.conf
<snip>
Related Question