![Wifi 适配器不工作](https://linux22.com/image/1029269/Wifi%20%E9%80%82%E9%85%8D%E5%99%A8%E4%B8%8D%E5%B7%A5%E4%BD%9C.png)
我的 wifi 加密狗停止工作了,我之前用这个线程安装了它: 最新更新 20.04 破坏了 Realtek Wifi 驱动程序...如何恢复?。但现在它停止工作了,有人能帮我吗?非常感谢!
DKSM 状态:
nvidia/515.86.01, 5.15.0-60-generic, x86_64: installed
nvidia/515.86.01, 5.19.0-32-generic, x86_64: installed
rtl8821CU/5.4.1: added
SUDO LSHW-C 网络
*-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:04:00.0
logical name: enp4s0
version: 0c
serial: b4:2e:99:42:5d:92
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp
mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.19.0-
32-generic firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes
port=twisted pair
resources: irq:34 ioport:f000(size=256) memory:f7500000-f7500fff memory:f2200000-f2203fff
*-network
description: Ethernet interface
physical id: 5
bus info: usb@1:4
logical name: enxb6337242e0ec
serial: b6:33:72:42:e0:ec
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=rndis_host
driverversion=5.19.0-32-generic duplex=half firmware=RNDIS device
ip=192.168.198.105 link=yes multicast=yes port=twisted pair
系统盘
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 258a:0016 BY Tech Usb Gaming Keyboard
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 015: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
Bus 001 Device 019: ID 22b8:2e24 Motorola PCS moto g(60)s
Bus 001 Device 003: ID 145f:02a7 Trust GXT 950 Gaming Mouse
Bus 001 Device 007: ID 0a5c:2148 Broadcom Corp. BCM92046DG-CL1ROM Bluetooth 2.1
Adapter
Bus 001 Device 006: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 001 Device 004: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of
BCM2046 Bluetooth)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我也按照评论中的建议使用了 grep 命令,但没有输出:
~/rtl8821CU/rtl8821CU$ grep rtw /etc/modprobe.d/*
答案1
您使用与 5.19 Linux 内核不兼容的 DKMS 从某个地方安装了驱动程序。
Ubuntu 22.04 最近升级到 5.19 内核,但驱动程序无法构建。
您可以使用带有 grub 菜单的先前的内核进行启动,并且加密狗应该可以工作。
使其永久运行的选项是:
找到一个支持 5.19 内核的修补驱动程序,或者自己修补。请不要问如何修补它。如果你不知道,那么这个选项不适合你。该驱动程序应该可以在 Ubuntu 22.10 上运行,因为它使用相同的内核。所以搜索起来更容易。
将您的系统切换到非 HWE 内核。