Debian - 全新安装后没有 WiFi

Debian - 全新安装后没有 WiFi

我刚刚在我的系统上安装了 Debian Stretch。我必须将所有驱动程序加载到另一个 USB 棒上才能使 WiFi 棒正常工作,但当它最终接受 USB 时,我在安装时可以上网。

然而,第一次重新启动后,我收到一条错误消息,提示我无法连接到我的 WiFi。所以我查看了设置,但似乎没有什么问题。我重新输入密码,发现“保存”按钮呈灰色。它显示:“Wi-Fi 设置无效:MAC 地址无效...”。果然,在您可以输入 MAC 地址的字段中显示“永久”。所以我清空了该字段,但重新连接仍然失败。我刚拿到旋转器,它最终放弃了:

未连接

ifconfig 输出:

enp4s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
    ether 8c:89:a5:88:02:d0  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    inet 127.0.0.1  netmask 255.0.0.0
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 1  (Local Loopback)
    RX packets 39476  bytes 2368560 (2.2 MiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 39476  bytes 2368560 (2.2 MiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx7cdd905ca7ad: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
    ether 4e:6d:39:55:9c:99  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

我的无线局域网配置如下所示:

我的无线局域网配置

我还尝试了手动连接,如 debian wiki wiki.debian[dot]org WiFi HowToUse 中所述,但ifup wlx7cdd905ca7ad仅输出:

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlx7cdd905ca7ad.

[编辑:]

按照要求:

lspci(不重要,因为它是 USB 设备)但 lsusb:Realink Tech, corp RT5370 Wireless adapter

lsmod | grep wifi(没有什么)

ls -s /lib/firmware/

4 hp 8 rt2870.bin 4 rtl_nic

[编辑2:]

lsmod | grep rt:

iTCO_vendor_support    16384  1 iTCO_wdt
rt2800usb              28672  0
rt2x00usb              24576  1 rt2800usb
rt2800lib              94208  1 rt2800usb
rt2x00lib              53248  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              643072  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              569344  2 mac80211,rt2x00lib
crc_ccitt              16384  1 rt2800lib
parport_pc             28672  0
parport                49152  3 lp,ppdev,parport_pc
usbcore               241664  9 uas,rt2x00usb,usb_storage,rt2800usb,ehci_hcd,ehci_pci,usbhid,xhci_hcd,xhci_pci

networkctl

IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           n/a         unmanaged 
  2 enp4s0           ether              n/a         unmanaged 
  3 wlx7cdd905ca7ad  wlan               n/a         unmanaged 

3 links listed.

答案1

尝试禁用随机 MAC 地址随机化:将以下内容添加到 /etc/NetworkManager/NetworkManager.conf 并重新启动 NetworkManager.service:

[设备] wifi.scan-rand-mac-address=no

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836351https://www.reddit.com/r/debian/comments/55ltct/stretch_wifi_issues/

CB

相关内容