StackExchange!我有 ubuntu 22.04 lts 和 nettis wf2123 usb wifi 适配器。我从 nettis 网站下载驱动程序,但当我运行 sudo sh ./install.sh 时,出现此错误:
home/dmitriykalshnikov/Downloads/RTL8192EU_WF2123_WF2122/RTL8192EU_linux_v4.4.1_17696_BTCOEX20160412-0042.20160510/driver/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/dmitriykalshnikov/Downloads/RTL8192EU_WF2123_WF2122/RTL8192EU_linux_v4.4.1_17696_BTCOEX20160412-0042.20160510/driver/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/include/osdep_service_linux.h:273:15: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
273 | ptimer->data = (unsigned long)cntx;
| ^~
/home/dmitriykalshnikov/Downloads/RTL8192EU_WF2123_WF2122/RTL8192EU_linux_v4.4.1_17696_BTCOEX20160412-0042.20160510/driver/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/include/osdep_service_linux.h:274:9: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
274 | init_timer(ptimer);
| ^~~~~~~~~~
| _init_timer
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /home/dmitriykalshnikov/Downloads/RTL8192EU_WF2123_WF2122/RTL8192EU_linux_v4.4.1_17696_BTCOEX20160412-0042.20160510/driver/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1907: /home/dmitriykalshnikov/Downloads/RTL8192EU_WF2123_WF2122/RTL8192EU_linux_v4.4.1_17696_BTCOEX20160412-0042.20160510/driver/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-71-generic'
make: *** [Makefile:1686: modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
请帮我安装这个驱动程序!
附言:https://github.com/Mange/rtl8192eu-linux-driver 这里的驱动程序不适合我——系统在最后一次重启后没有看到我的适配器
答案1
设备 005:ID 0bda:0811 Realtek Semiconductor Corp. Realtek 8812AU/8821AU 802.11ac WLAN 适配器 [USB 无线双频适配器 2.4/5Ghz]
您的设备的正确驱动程序是 88XXau。通过以太网、网络共享或任何可能的方式建立临时互联网连接,请打开终端并执行以下操作:
sudo apt install git
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sudo make dkms_install
sudo modprobe 88XXau
一切已准备就绪。