Sadly I made the mistake of not checking decent Linux support before buying.
Anyways, my 2 cents, lsub should show which drivers to use - apparently tp-link change internals without changing the model number.
$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 003 Device 004: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Bus 003 Device 002: ID 0557:8021 ATEN International Co., Ltd Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU] <<<<<<<<<<
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Always check the hardware info as it is the chip that matters. Sometimes the chip will even be a different vendor or as in your case a different version.
I feel like i did’t explain the problem clearly enough.
i have tried to download all those drivers in many of the ways i’ve been suggested to.
The problems seems to be that the drivers only work up to a certain linux kernel version., as the error shown after tried to install any of them seems to suggest:
==> Starting pkgver()...
==> Starting build()...
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.10-arch1-1/build M=/home/argenisjimort/.cache/yay/rtl8192eu-git/src/rtl8192eu-linux-driver modules
make[1]: *** /lib/modules/5.15.10-arch1-1/build: No such file or directory. Stop.
make: *** [Makefile:2289: modules] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: rtl8192eu-git
: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> ERROR: Missing 5.15.11-arch2-1 kernel modules tree for module rtl88xxau/r1174.3a6402e.
(3/3) Checking which packages need to be rebuilt
Okay…you have shown 3 different packages all not working? Are you running on the lts kernel or some other? Or are you not running the package install correctly?
I believe i just have to accept the “linux compatible” usb wireless adapter i just bought doesnt work.
Even the oficial Tp-link webpage show drivers avaliable only up to 4.10
anyways, heres my linux kernel.
Current Kernel version:
$ uname -r
5.15.10-arch1-1
and here the installation process:
$ yay -S rtl88xxau-aircrack-dkms-git
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] rtl88xxau-aircrack-dkms-git-r1174.3a6402e-1
1 rtl88xxau-aircrack-dkms-git (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/0): rtl88xxau-aircrack-dkms-git
1 rtl88xxau-aircrack-dkms-git (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: rtl88xxau-aircrack-dkms-git
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (jue 30 dic 2021 21:50:51)
==> Retrieving sources...
-> Updating rtl88xxau git repo...
Fetching origin
-> Found dkms.conf
==> Validating source files with sha256sums...
rtl88xxau ... Skipped
dkms.conf ... Passed
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (jue 30 dic 2021 21:51:10)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating rtl88xxau git repo...
Fetching origin
-> Found dkms.conf
==> Validating source files with sha256sums...
rtl88xxau ... Skipped
dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Creating working copy of rtl88xxau git repo...
Cloning into 'rtl88xxau'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Sources are ready.
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (jue 30 dic 2021 21:51:44)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Sources are ready.
-> rtl88xxau-aircrack-dkms-git-r1174.3a6402e-1 already made -- skipping build
-> signal: killed
[sudo] password for argenisjimort:
loading packages...
warning: rtl88xxau-aircrack-dkms-git-r1174.3a6402e-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (1) Old Version New Version Net Change
rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 r1174.3a6402e-1 0,00 MiB
Total Installed Size: 50,87 MiB
Net Upgrade Size: 0,00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [----------------------------] 100%
(1/1) checking package integrity [----------------------------] 100%
(1/1) loading package files [----------------------------] 100%
(1/1) checking for file conflicts [----------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling rtl88xxau-aircrack-dkms-git [----------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> ERROR: Missing 5.15.11-arch2-1 kernel modules tree for module rtl88xxau/r1174.3a6402e.
(3/3) Checking which packages need to be rebuilt
So it seems there is some reason why it’s not working. It’s very strange to me as i have a lot of Tp-link WiFi cards but they are internal Pci-E cards and they use Broadcom chips.
Your kernel is 5.15.10, and your headers are 5.15.11.
linux 5.15.10.arch1-1
linux-headers 5.15.11.arch2-1
I don’t know what you’ve been doing to achieve that partial upgrade state, but UPDATE YOUR SYSTEM, reboot, and try building the package again; when yay asks you to for “packages to cleanbuild,” type A (for “All”) just in case.
EDIT - I missed that you also have the LTS kernel - you’ll probably want to install the linux-lts-headers package.