Can we install windows wifi adapter driver on linux?

I dual booted Linux(Manjaro xfce) with windows 7.

As my laptop doesnt support 5g wifi routers, I bought a tplink USB wifi Adaptor(Archer T2U Plus). I installed the drivers from its manual on windows 7 but there are no drivers for linux.

Can I install that driver in Linux and use the network adaptor? If yes then please explain how

Have you at least tried it as is? You may not need to install one.

yes ofc, didn’t work

Getting an error

[sens@potato ~]$ git clone https://aur.archlinux.org/rtl8821au-dkms-git.git
Cloning into 'rtl8821au-dkms-git'...
remote: Enumerating objects: 50, done.
remote: Counting objects: 100% (50/50), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 50 (delta 8), reused 47 (delta 6), pack-reused 0
Receiving objects: 100% (50/50), 10.98 KiB | 111.00 KiB/s, done.
Resolving deltas: 100% (8/8), done.
[sens@potato ~]$ cd rtl8821au-dkms-git/
[sens@potato rtl8821au-dkms-git]$ ls
dkms.conf  PKGBUILD
[sens@potato rtl8821au-dkms-git]$ makepkg -si
==> Making package: rtl8821au-dkms-git 5.12.5.2.r95.ge4ad4ba-1 (Saturday 19 February 2022 09:45:11 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning 8821au-20210708 git repo...
Cloning into bare repository '/home/sens/rtl8821au-dkms-git/8821au-20210708'...
remote: Enumerating objects: 1294, done.
remote: Counting objects: 100% (1294/1294), done.
remote: Compressing objects: 100% (841/841), done.
remote: Total 1294 (delta 647), reused 1078 (delta 449), pack-reused 0
Receiving objects: 100% (1294/1294), 3.12 MiB | 2.76 MiB/s, done.
Resolving deltas: 100% (647/647), done.
  -> Found dkms.conf
==> Validating source files with sha256sums...
    8821au-20210708 ... Skipped
    dkms.conf ... Passed
==> Extracting sources...
  -> Creating working copy of 8821au-20210708 git repo...
Cloning into '8821au-20210708'...
done.
==> Starting pkgver()...
==> Updated version: rtl8821au-dkms-git 5.12.5.2.r125.g377d3ca-1
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8821au-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8821au-dkms-git 5.12.5.2.r125.g377d3ca-1 (Saturday 19 February 2022 09:45:24 AM)
==> Installing package rtl8821au-dkms-git with pacman -U...
loading packages...
warning: rtl8821au-dkms-git-5.12.5.2.r125.g377d3ca-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl8821au-dkms-git-5.12.5.2.r125.g377d3ca-1

Total Installed Size:  15.14 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(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%
(1/1) checking available disk space                                [####################################] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
(2/2) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling rtl8821au-dkms-git                              [####################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> ERROR: Missing run kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing snap kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing opt kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing bin kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing etc kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing rootfs-pkgs.txt kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing lib kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing srv kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing var kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing tmp kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing proc kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing dev kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing sys kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing mnt kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing lib64 kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing home kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing boot kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing timeshift kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing usr kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing sbin kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing root kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing desktopfs-pkgs.txt kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.
==> ERROR: Missing lost+found kernel headers for module 8821au/5.12.5.2.r125.g377d3ca.

Output of uname -r:

5.16.7-1-MANJARO

As mentioned on the AUR page, try rtl88xxau-aircrack-dkms-git instead.

Also, you still have the

kernel … and you had no kernel modules for it - remove it completely as is EOL …

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