我是Raspberry Pi的新手,正在尝试将其连接到我的移动WiFi rooter。 但是,有一个错误使我无法使用10个小时。请帮助我。
sudo raspi-config
来更改Wi-fi Country(I4)和WI-fi(N2)的设置,它们都响应了“找不到无线接口”错误。我已经搜索过,有人说我需要更改
/etc/network/interfaces
和
/etc/wpa_supplicant/wpa_supplicant.conf
,我将它们固定在下面:
我尝试了ifconfig wlan0 up
,其内容如下:
# /etc/network/interfaces
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="(my rooter's SSID here)"
psk="(Its password here)"
}
# (After these changes I've executed 'sudo reboot' already.)```
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: failed to bring up wlan0
~
- As I'm unable to connect it to the Wi-Fi, I cannot execute `sudo apt-get update` like some recommended.
I'm totally at a loss how to fix this. Please give me an advice.
### Sources I've tried with:
https://ubuntuforums.org/showthread.php?t=2346826
https://raspberrypi.stackexchange.com/questions/45392/cannot-find-device-wlan0
https://askubuntu.com/questions/249510/why-did-wlan0-device-disappear