TP-Link Archer T2UH 无法在 kali linux 上运行

TP-Link Archer T2UH 无法在 kali linux 上运行

我尝试安装 TP-Link Archer 2TUH,但每当我使用驱动程序进入终端并输入“make”时,都会出现一堆错误,提示

"root@f1nd3r:~/Desktop/Archer_T2UH_V1_150909# make
make -C UTIL/ osutil
make[1]: Entering directory '/root/Desktop/Archer_T2UH_V1_150909/UTIL'
cp -f os/linux/Makefile.6.util /root/Desktop/Archer_T2UH_V1_150909/UTIL/os/linux/Makefile
make -C /lib/modules/4.6.0-kali1-amd64/build SUBDIRS=/root/Desktop/Archer_T2UH_V1_150909/UTIL/os/linux modules
make[2]: Entering directory '/root/Desktop/Archer_T2UH_V1_150909/UTIL'
make[2]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory.  Stop.
make[2]: Leaving directory '/root/Desktop/Archer_T2UH_V1_150909/UTIL'
Makefile:527: recipe for target 'osutil' failed
make[1]: *** [osutil] Error 2
make[1]: Leaving directory '/root/Desktop/Archer_T2UH_V1_150909/UTIL'
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2"

有解决办法吗?谢谢 :)

答案1

幸运的是,我对这个问题有答案。您必须安装内核头文件。

apt-get install linux-headers-amd64

这是我以前的情况,现在你将面临和我一样的错误,顺便说一句,如果没有,请告诉我:

root@Unknown:~/Downloads/Driver# make
make -C UTIL/ osutil
make[1]: Entering directory '/root/Downloads/Driver/UTIL'
cp -f os/linux/Makefile.6.util /root/Downloads/Driver/UTIL/os/linux/Makefile
make -C /lib/modules/4.8.0-kali1-amd64/build SUBDIRS=/root/Downloads/Driver/UTIL/os/linux modules
make[2]: Entering directory '/usr/src/linux-headers-4.8.0-kali1-amd64'
  CC [M]  /root/Downloads/Driver/UTIL/os/linux/../../common/rt_os_util.o
/root/Downloads/Driver/UTIL/os/linux/../../common/rt_os_util.c:1:0: error: code model kernel does not support PIC mode
 /****************************************************************************

/usr/src/linux-headers-4.8.0-kali1-common/scripts/Makefile.build:294: recipe for target '/root/Downloads/Driver/UTIL/os/linux/../../common/rt_os_util.o' failed
make[5]: *** [/root/Downloads/Driver/UTIL/os/linux/../../common/rt_os_util.o] Error 1
/usr/src/linux-headers-4.8.0-kali1-common/Makefile:1488: recipe for target '_module_/root/Downloads/Driver/UTIL/os/linux' failed
make[4]: *** [_module_/root/Downloads/Driver/UTIL/os/linux] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.8.0-kali1-amd64'
Makefile:527: recipe for target 'osutil' failed
make[1]: *** [osutil] Error 2
make[1]: Leaving directory '/root/Downloads/Driver/UTIL'
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2

相关内容