我已经在我的 Arago Linux 机器上安装了 NetworkManager。 NetworkManager 似乎可以正常启动以太网接口,但 wifi 接口不可用。
root@machine:~# nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected netplan-eth0
eth1 ethernet connected netplan-eth1
wlan0 wifi unavailable --
该问题似乎是因为 NetworkManager 无法获取 wpa_supplicant。
NetworkManager[251]: [0;1;39m<warn> [1640291073.0649] supplicant: failed to acquire wpa_supplicant proxy: Wi-Fi and 802.1x will not be available (Error calling StartServiceByName for fi.w1.wpa_supplicant1: GDBus.Error:org.freedesktop.DBus.Er
ror.TimedOut: Failed to activate service 'fi.w1.wpa_supplicant1': timed out (service_start_timeout=25000ms))
我不确定为什么无法激活 dbus wpa_supplicant 服务。我添加了一个 wpa_supplicant.service ,如下所示:
[Unit]
Description=WPA supplicant
Before=network.target
After=dbus.service
Wants=network.target
IgnoreOnIsolate=true
[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/usr/sbin/wpa_supplicant -u -s -O /var/run/wpa_supplicant
[Install]
WantedBy=multi-user.target
Alias=dbus-fi.w1.wpa_supplicant1.service
fi.w1.wpa_supplicant1.service 也存在于 /usr/share/dbus-1/system-services/ 中:
[D-BUS Service]
Name=fi.w1.wpa_supplicant1
Exec=/usr/sbin/wpa_supplicant -u -s -O /var/run/wpa_supplicant
User=root
SystemdService=wpa_supplicant.service
关于为什么会发生这种情况有什么想法吗?谢谢