就在昨天,我安装了Cilynx 驱动程序我的新tp-link Archer TU3 Plus (AC1300)并且它工作得很好。(我曾经lsusb
确定过我的适配器 USB ID,2357:0138
互联网上说它是 RTL88x2bu 芯片组。)
今天我进行了版本升级,之后就无法连接了。然后我尝试使用回答如何删除驱动程序并尝试重新安装驱动程序,但失败了。尝试删除旧驱动程序时出错:
重新安装时出现错误:
user@t:~/Downloads/rtl88x2bu$ sudo dkms build -m rtl88x2bu -v ${VER}
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.8.0-26-generic KVER=5.8.0-26-generic src=/usr/src/rtl88x2bu-5.6.1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.8.0-26-generic (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.
我也试过这边走,但我再次收到错误:
user@t:~/Downloads/rtl88x2bu$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-26-generic/build M=/home/user/Downloads/rtl88x2bu modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.8.0-26-generic“ wird betreten
CC [M] /home/user/Downloads/rtl88x2bu/core/rtw_cmd.o
In file included from /home/user/Downloads/rtl88x2bu/include/drv_types.h:79,
from /home/user/Downloads/rtl88x2bu/core/rtw_cmd.c:17:
/home/user/Downloads/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
252 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
from ./include/net/sock.h:59,
from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:88,
from ./include/net/addrconf.h:50,
from /home/user/Downloads/rtl88x2bu/include/osdep_service_linux.h:48,
from /home/user/Downloads/rtl88x2bu/include/osdep_service.h:50,
from /home/user/Downloads/rtl88x2bu/include/drv_types.h:27,
from /home/user/Downloads/rtl88x2bu/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:290: /home/user/Downloads/rtl88x2bu/core/rtw_cmd.o] Fehler 1
make[1]: *** [Makefile:1780: /home/user/Downloads/rtl88x2bu] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.8.0-26-generic“ wird verlassen
make: *** [Makefile:2284: modules] Fehler 2
请帮助我让驱动程序再次运行!
答案1
请确认您已删除该驱动程序的所有其他实例:
sudo dkms status
接下来,执行以下操作:
git clone "https://github.com/RinCat/RTL88x2BU-Linux-Driver.git" /usr/src/rtl88x2bu-git
sudo sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
sudo dkms add -m rtl88x2bu -v git
sudo dkms autoinstall
重启。