3

我试图让我的 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
4

1 回答 1

0

您的 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
}
于 2015-07-26T20:00:01.820 回答