무선 LAN은 제대로 작동하지만 에 이 로그 항목이 있습니다 journalctl -b -p 3
. 원인은 무엇입니까?
Dec 11 21:26:09 raspberrypi wpa_supplicant[440]: 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.
Dec 11 21:26:09 raspberrypi NetworkManager[433]: <error> [1607718369.9284] sup-iface[0x2a0450,wlan0]: error adding interface: wpa_supplicant couldn't grab this interfac
cat /etc/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="foo"
psk="bar"
}
답변1
NetworkManager
서비스 이용을 중단해야 합니다 wpasupplicant
.
sudo systemctl stop NetworkManager
모든 wpasupplicant
인스턴스를 종료합니다.
sudo killall wpasupplicant
또는
sudo killall wpa_supplicant
서비스를 완전히 비활성화하려면 NetworkManager
다음을 사용하십시오.
sudo systemctl disable NetworkManager