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

관련 정보