今天我启动笔记本电脑时,Wifi 突然无法使用,过去两个小时我一直在尝试让它恢复工作。我想我已经解决了一两个问题,但我并没有真正记录下任何东西。我现在无法解决的问题是:我的 Wifi 界面似乎被禁用了,我无法(总是??)启用它。但即使我能够启用它,Wifi 仍然无法工作。
这是我的输出lshw -C network
:
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 0c
serial: 30:65:ec:78:53:5c
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=MII
resources: irq:18 ioport:3000(size=256) memory:c1200000-c1200fff memory:c1000000-c1003fff
*-network DISABLED
description: Wireless interface
product: Wireless 7265
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 48
serial: 5c:e0:c5:03:6c:ea
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-88-generic firmware=17.3216344376.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:48 memory:c1100000-c1101fff
*-network
description: Ethernet interface
physical id: 1
bus info: usb@1:1.2
logical name: usb0
serial: ce:4f:d0:53:fc:10
capabilities: ethernet physical
configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.231.76 link=yes multicast=yes
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
输出sudo rfkill list
:
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
5: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
输出sudo systemctl status wpa_supplicant.service
:
● wpa_supplicant.service - WPA supplicant
Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-10-02 15:42:54 CEST; 5h 5min ago
Main PID: 1242 (wpa_supplicant)
Tasks: 1 (limit: 9378)
Memory: 3.3M
CGroup: /system.slice/wpa_supplicant.service
└─1242 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
Okt 02 15:42:54 Lithographie systemd[1]: Starting WPA supplicant...
Okt 02 15:42:54 Lithographie wpa_supplicant[1242]: Successfully initialized wpa_supplicant
Okt 02 15:42:54 Lithographie systemd[1]: Started WPA supplicant.
第一个是我不用的以太网连接。第二个是我的无线连接,今天它奇迹般地停止工作了。第三个是我通过手机实现网络共享连接的解决方法。
modprobe -r iwlwifi
一开始并modprobe iwlwifi
不能工作,现在能工作了,但并没有真正改变任何东西。此外,当我尝试时,sudo ip link set wlp2s0 up
有时它会将界面切换为启用(有时则不会),但 Wifi 仍然无法工作。
我在 Acer Travelmate P236-M-57R4 上运行 Ubuntu 20.04 LTS。提前感谢您的帮助!
编辑:不知道是否有任何联系,但昨天我遇到了一些问题,因为我对chown -r
我的主帐户的 /usr/ 文件夹做出了非常不明智的决定。我想我已经解决了这些问题,但也许我没有?
答案1
我认为命令chown
是问题所在。使用并sudo apt-get purge wpasupplicant
重新安装(从缓存安装)。sudo apt-get install wpasupplicant
sudo apt-get install network-manager