nlkguy / archer-t2u-plus-linux

TP-Link Archer T2U Plus / AC600 High Gain USB Wifi Adapter Review & Driver installation Guide for various platforms.
https://TechBuy.in
381 stars 677 forks source link

Can't install the driver #2

Closed fuckcuff closed 2 years ago

fuckcuff commented 3 years ago

Im on a kali linux virtual machine

"sudo make dkms_install" gives me this output

mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025
You cannot add the same module/version combo more than once.
make: *** [Makefile:2303: dkms_install] Error 3

"sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all" gives me this

------------------------------
Deleting module version: 5.6.4.2_35491.20191025
completely from the DKMS tree.
------------------------------
Done.

"sudo make dkms_install" after running "sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all" gives this

mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
                 /usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Error! echo
Your kernel headers for kernel 5.10.0-kali3-amd64 cannot be found at
/lib/modules/5.10.0-kali3-amd64/build or /lib/modules/5.10.0-kali3-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
make: *** [Makefile:2304: dkms_install] Error 1

"sudo make dkms_install" again gives this

mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025
You cannot add the same module/version combo more than once.
make: *** [Makefile:2303: dkms_install] Error 3

"iwconfig" gives this

lo        no wireless extensions.

eth0      no wireless extensions.
Mr-Technician commented 3 years ago

same issue :/

steled commented 2 years ago

Hi,

for me the following command solved the problem:

$ sudo rm -rf /var/lib/dkms/8812au/

nlkguy commented 2 years ago

Hi,

for me the following command solved the problem:

$ sudo rm -rf /var/lib/dkms/8812au/

this will solve the issue,ill add this to instructions