无法在 Kali 上安装 TL-WN821N (V5) 驱动程序

无法在 Kali 上安装 TL-WN821N (V5) 驱动程序

我正在尝试将驱动程序安装到我的无线适配器(TL-WN821N 版本 5):

我已经尝试过以下操作:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt update
sudo apt install rtl8192eu-dkms

但我收到以下错误:

E: Unable to locate package rtl8192eu-dkms

我也尝试过手动下载并安装它,但我得到了这个:

make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.6.0-kali1-amd64/build M=/root/Desktop/20140812_rtl8192EU_linux_v4.3.1.1_11320  modules
make[1]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory.  Stop.
Makefile:1323: recipe for target 'modules' failed
make: *** [modules] Error 2

编辑:lsusb 输出

root@kali:~# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 8087:07da Intel Corp. 
Bus 001 Device 003: ID 1bcf:2c0e Sunplus Innovation Technology Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
**Bus 003 Device 002: ID 2357:0107**  
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

答案1

您应该升级内核版本然后安装linux-headers

apt-get update && apt-get upgrade && && apt-get dist-upgrade

或者安装最新的linux-imagelinux-headers.

您可以通过以下方式获取列表:

apt-get update
apt-cache search linux-image

然后安装最新的(替换linux-image-xx

apt-get install linux-image-xx
apt-get install linux-headers-xx

重新启动(启动最新安装的内核)

安装所需的包:

apt-get install git build-essential 

安装wifi驱动

git clone https://github.com/jeremyb31/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
make
make install

重启

相关内容