我试图让我的Pi连接到没有密码的公共Wifi网络,但似乎无法正确获取wpa_supplicant.conf文件。这是文件:

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

# Public network
network={
    ssid="PublicSSID"
    key_mgmt=None
}


但是,当我尝试连接时,出现此错误:

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1


我可以连接到我的家庭网络以及其他密码很好的网络。任何想法出什么事了吗?

顺便说一句,我正在这样连接:(wifi是wlan1):

$ sudo ifdown wlan1
$ sleep 5
$ sudo ifup wlan1

最佳答案

您的wpa_supplicant.conf文件中应包含psk =“”,以便它指示没有密码。

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

# Public network
network={
    ssid="PublicSSID"
    psk=""
    key_mgmt=None
}

关于network-programming - Raspberry pi无法连接到wpa_supplicant-wpa_ctrl_open:无此类文件或目录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31306336/

10-12 20:27