将Raspberry PI B +连接到Wifi时出错

时间:2019-05-05 13:05:45

标签: linux raspberry-pi iwconfig

我是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

0 个答案:

没有答案