帮助设置 wpa_supplicant

帮助设置 wpa_supplicant

我一直在努力在我的无头服务器上设置无线:Ubuntu 16.04.2 LTS。

$ sudo wpa_supplicant -Dnl80211 -iwlp3s0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
CTRL: Invalid group 'wheel'
Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0

当我跑步时,ps aux | grep wpa我看到它正在运行:

root      1124  0.0  0.1  44024  6392 ?        Ss   08:22   0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

上次我试图终止该进程时,却陷入了计算机无法关闭的境地。

更多细节:

$ uname -a
Linux butny 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ ifconfig
....
wlp3s0    Link encap:Ethernet  HWaddr e8:94:f6:10:bb:ee
      UP BROADCAST MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

$ wpa_supplicant -h
drivers:
  nl80211 = Linux nl80211/cfg80211
  wext = Linux wireless extensions (generic)
  wired = Wired Ethernet driver
  none = no driver (RADIUS server/WPS ER)

$ more /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=admin # group admin can use wpa_cli
update_config=1
network={
  ssid="<home>"
  psk="<password>"
}

答案1

问题的根源似乎在于/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=admin # group admin can use wpa_cli

CTRL:无效组“wheel”无法初始化控制接口“/run/wpa_supplicant”。

该组不存在,您可以尝试用Ubuntu 中存在的admin组替换它。sudo

ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=sudo 

或者root在 Ubuntu 中存在的组中。

ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=root 

相关内容