TP Link t9uh 驱动程序不工作

TP Link t9uh 驱动程序不工作

我正在尝试安装我的 TP-link T9UH wifi 适配器。我尝试过官方驱动程序和来自这个帖子但它不起作用。我从上一篇文章中列出的存储库并从目录内部运行以下命令:

sudo ./dkms-install.sh

我收到以下错误:

About to run dkms install steps...
mkdir: cannot create directory ‘/usr/src/rtl8814AU-4.3.21’: File 
exists
fatal: Not a valid object name
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Error! DKMS tree already contains: rtl8814AU-4.3.21
You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make'...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8814AU: 4.3.21 not found
Error! Bad return status for module build on kernel: 4.15.0-32-generic 
(x86_64)
Consult /var/lib/dkms/rtl8814AU/4.3.21/build/make.log for more 
information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make'...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8814AU: 4.3.21 not found
Error! Bad return status for module build on kernel: 4.15.0-32-generic 
(x86_64)
Consult /var/lib/dkms/rtl8814AU/4.3.21/build/make.log for more 
information.
Finished running dkms install steps.

当我查看日志文件时,我看到了与原始驱动程序中看到的相同的错误,即:

DKMS make.log for rtl8814AU-4.3.21 for kernel 4.15.0-32-generic 
(x86_64)
Thu Aug 23 12:51:17 PDT 2018
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-32-            
generic/build M=/var/lib/dkms/rtl8814AU/4.3.21/build  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-32-generic'
CC [M]  /var/lib/dkms/rtl8814AU/4.3.21/build/core/rtw_cmd.o
In file included from     
/var/lib/dkms/rtl8814AU/4.3.21/build/include/osdep_service.h:41:0,
from 
/var/lib/dkms/rtl8814AU/4.3.21/build/include/drv_types.h:
from 
/var/lib/dkms/rtl8814AU/4.3.21/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8814AU/4.3.21/build/include/osdep_service_linux.h: In         
function ‘_init_timer’:
/var/lib/dkms/rtl8814AU/4.3.21/build/include/
osdep_service_linux.h:273:8: error: ‘_timer {aka struct timer_list}’ 
has no member named ‘data’
ptimer->data = (unsigned long)cntx;
    ^~
/var/lib/dkms/rtl8814AU/4.3.21/build/include
/osdep_service_linux.h:274:2: error: implicit declaration of function 
‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function- 
declaration]
init_timer(ptimer);
^~~~~~~~~~
_init_timer
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target     
****'/var/lib/dkms/rtl8814AU/4.3.21/build/core/rtw_cmd.o' failed
make[2]: *** [/var/lib/dkms/rtl8814AU/4.3.21/build/core/rtw_cmd.o] 
Error 1
Makefile:1552: recipe for target 
'_module_/var/lib/dkms/rtl8814AU/4.3.21/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8814AU/4.3.21/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-32-generic'
Makefile:1699: recipe for target 'modules' failed
make: *** [modules] Error 2

我对 ubuntu 还不太熟悉,不知道到底发生了什么。如能得到任何帮助我将不胜感激。提前致谢。

相关内容