Tplink t2u doesn't work

I recently had some problems with an update and some drivers,
after fixing it, everything works fine except the network adapter.
Maybe I messed up something in the process, because I had to reinstall linux kernel.
I always used rtl88xxau-airtrack-dkms-git and worked fine, but now it is broken.
So I tried with a different one, rtl8821au, didn’t work either.

Appears like this in lsusb
Bus 008 Device 002: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]

Have you tried rtl8821au-dkms-git

I did, but didn’t work.
I think is something else because rtl88xxau worked.

Worked before or is working now?

Worked before I messed up the system

Do you have it currently installed? Are you using systemd-boot? Or grub?

Edit: If you are using systemd-boot then i would first make sure you have installed the package that you said it worked with. Then try sudo reinstall-kernels

Edit: Not sure what kernel you are using? Is it the current kernel?

I have currently installed rtl88xxau-airtrack-dkms-git, grub and 6.6.18-1-lts kernel

Did you try reinstalling the package that the Tplink worked on? Then run sudo dracut-rebuild if you are using grub.

Yes, also tried that but nothing.

dkms status
rtl88xxau/r1283.a3e0c0b: added

Edit: I checked lsusb -v and throws

Bus 008 Device 002: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]
Couldn't open device, some information will be missing

I compared with another partition with Eos and dkms status shows “installed” not “added”, so I tried to remove the driver but I can’t.

➜  ~ dkms remove rtl88xxau/r1283.a3e0c0b --all
Error! No write access to DKMS tree at /var/lib/dkms
➜  ~ dkms uninstall rtl88xxau/r1283.a3e0c0b    
Error! You must be root to use this command.
➜  ~ sudo dkms uninstall rtl88xxau/r1283.a3e0c0b
[sudo] password for tao: 
Module rtl88xxau r1283.a3e0c0b is not installed for kernel 6.6.18-1-lts (x86_64). Skipping...
➜  ~ sudo dkms status                         
rtl88xxau/r1283.a3e0c0b: added

Reinstalling the driver again I noticed this:

(3/3) installing rtl88xxau-aircrack-dkms-git                    [----------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Arming ConditionNeedsUpdate...
(3/5) Install DKMS modules
==> ERROR: Missing sys kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing mnt kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing sbin kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing var kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing bin kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing opt kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing run kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing usr kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing timeshift kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing swapfile kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing etc kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing boot kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing tmp kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing lib64 kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing dev kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing proc kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing lost+found kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing srv kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing home kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing lib kernel headers for module rtl88xxau/r1283.a3e0c0b.
==> ERROR: Missing root kernel headers for module rtl88xxau/r1283.a3e0c0b.

I’ve never used commands such as dkms remove rtlxxau.a3e0c0b --all. I’m not sure what to suggest. If you run yay -R rtl88xxau-aircrack-dkms-git what is the full output? Does it remove it without errors.

Yes, it removes it without errors, but as I show before, the installing throws some errors with kernel headers

Ok, fixed it, I uninstalled the driver, then reinstalled the linux-lts-headers and installed again the driver and works fine.
It seems that I messed things up when I had to reinstall the kernel.
Anyway thanks for the help!!
:smile:

That’s kind of where i was going. Good job!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.