手动安装

手动安装

我用的是这个驱动程序:

https://github.com/clnhub/rtl8192eu-linux

它运行得很好,但有时过了 2 或 3 周后,wifi 适配器就无法再识别了,我需要重新安装驱动程序,然后它才能正常工作。

可能是什么原因?与 Ubuntu 更新有关吗?

更新:

$ dkms status
bcmwl, 6.30.223.271+bdcom, 5.0.0-29-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.0.0-31-generic, x86_64: installed

$ sudo lshw -C network
  *-network                 
       description: Ethernet interface
       product: 82579LM Gigabit Network Connection (Lewisville)
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eno1
       version: 04
       serial: 40:2c:f4:ec:79:92
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:27 memory:f7d00000-f7d1ffff memory:f7d39000-f7d39fff ioport:f080(size=32)
  *-network
       description: Wireless interface
       physical id: 2
       bus info: usb@1:1.1
       logical name: wlx503eaa3aa20c
       serial: 50:3e:aa:3a:a2:0c
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192eu ip=192.168.0.105 multicast=yes wireless=IEEE 802.11bgn

$ ls -al /usr/src
total 32
drwxr-xr-x  8 root root 4096 Oct 12 14:44 .
drwxr-xr-x 14 root root 4096 Apr 16 21:00 ..
drwxr-xr-x  5 root root 4096 Sep 20 17:06 bcmwl-6.30.223.271+bdcom
drwxr-xr-x  3 root root 4096 Jul 25 11:00 libdvd-pkg
drwxr-xr-x 25 root root 4096 Sep 19 20:01 linux-headers-5.0.0-29
drwxr-xr-x  8 root root 4096 Sep 19 20:01 linux-headers-5.0.0-29-generic
drwxr-xr-x 25 root root 4096 Oct  6 12:51 linux-headers-5.0.0-31
drwxr-xr-x  8 root root 4096 Oct  6 12:51 linux-headers-5.0.0-31-generic
lrwxrwxrwx  1 root root   32 Jul 12 13:51 vboxhost-6.0.10 -> ../share/virtualbox/src/vboxhost

$ ls -al /var/lib/dkms
total 16
drwxr-xr-x  3 root root 4096 Sep 20 17:06 .
drwxr-xr-x 75 root root 4096 Sep 20 17:06 ..
drwxr-xr-x  3 root root 4096 Oct  6 12:52 bcmwl
-rw-r--r--  1 root root    6 Apr 25  2018 dkms_dbversion

答案1

由于您安装驱动程序的方式,每次通过软件更新程序更新内核时都需要重新安装您的 wifi 驱动程序。

您需要按照dkms安装说明来修复此问题。请参阅 README.md...

手动安装

使用以下命令删除可用的驱动程序(如果 sudo lshw -C network 和 dkms status 没有显示任何 wifi 驱动程序则跳过):

sudo rmmod 8192eu
sudo rmmod rtl8xxxu
sudo dkms remove rtl8192eu/1.0 --all

黑名单默认驱动程序(Ubuntu 上的 rtl8xxxu):

echo "blacklist rtl8xxxu" >> ./blacklist-rtl8xxxu.conf
sudo mv ./blacklist-rtl8xxxu.conf /etc/modprobe.d/

从驱动程序目录运行添加并安装命令:

sudo dkms add .
sudo dkms install rtl8192eu/1.0

加载驱动程序(或重新启动):

sudo modprobe 8192eu

然后,dkms status应该显示rtl8192eu驱动程序已安装。

相关内容