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

おすすめ記事