Need help setting up Edimax EW-7811UTC Network adapter

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    [HowTo] Provide System Information
    and press the three dots below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

Ok done and done.

Looks like it is this driver:
https://aur.archlinux.org/packages/rtl88xxau-aircrack-dkms-git

Make sure that you have the appropriate Linux headers installed for your kernel. Then install via pamac in terminal or pamac GUI. In addition, be certain that in a dual boot situation that Windows is completely shutdown (always) and hibernation and fast boot are disabled. Good Luck.

pamac build rtl88xxau-aircrack-dkms-git

1 Like

Thanks! Im installing them as we speak!

After a few hours of trying im still having this problem

Preparing...
Cloning rtl8821au-dkms-git build files...
Generating rtl8821au-dkms-git information...
Checking rtl8821au-dkms-git dependencies...
Error: Failed to prepare transaction: could not find database



Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.
    ~                                                                                       1 ✘  18s  ```

having no database cannot be good :wink:
so:

I copy/pasted and searched for that error message
and this came up:

The essence is:
what happens after you have run:
sudo pacman -Syy
or
sudo pacman -Syyu
and then tried again … ?

So now somehow it decides to work but now it throws me another error

Preparing...
Cloning rtl8821au-dkms-git build files...
Generating rtl8821au-dkms-git information...
Checking rtl8821au-dkms-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To install (11):
  m4                  1.4.19-1                                                    core   264.5 kB
  autoconf            2.71-1                                                      core   660.7 kB
  pkgconf             1.8.0-1                                                     core   59.0 kB
  flex                2.6.4-3                                                     core   304.4 kB
  gc                  8.2.0-2                  (Required By: make)                extra  238.6 kB
  guile               2.2.7-2                  (Required By: make)                extra  6.6 MB
  make                4.3-3                                                       core   493.2 kB
  bison               3.8.2-1                                                     core   803.5 kB
  patch               2.7.6-8                                                     core   94.7 kB
  automake            1.16.5-1                                                    core   627.5 kB
  dkms                3.0.3-1                  (Required By: rtl8821au-dkms-git)  extra  37.1 kB
To build (1):
  rtl8821au-dkms-git  5.12.5.2.r95.ge4ad4ba-1                                     AUR

Total download size: 10.2 MB
Total installed size: 57.3 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Error: Failed to prepare transaction: target not found: flex

Like I said im new to linux so im sorry if im missing something that is very obvious!

sudo pacman -Syu base-devel

(install the base-devel package group, all of which is needed at some point when dealing with AUR)

Or see the messages:

flex
is needed, but not installed

Oh ok, Since im using my phones tethering this will take a while to download, Anyways ill report back if it works or not.

If you use tethering and need to keep down the downloaded data volume
just install flex and see if it will suffice (for the time being).

You could also connect your phone to the wlan - and then use usb tethering to get to use that
but I guess that is what you are doing already - so:
no issues with the amount of data …

Ok, from the errors im thinking I need a kernel header

==> ERROR: Missing run 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 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.
Refreshing PackageKit...                                                                                 [3/3]
Transaction successfully finished.
    ~            ```

update:
I searched up how to install headers but which should I choose

[sudo] password for kevinp: 
:: There are 11 providers available for linux-headers:
:: Repository core
   1) linux414-headers  2) linux419-headers  3) linux44-headers  4) linux49-headers  5) linux510-headers
   6) linux515-headers  7) linux516-headers  8) linux517-headers  9) linux54-headers
:: Repository community
   10) linux515-rt-headers  11) linux516-rt-headers

Enter a number (default=1): 

of course you need the kernel headers
at least the ones for the kernel that you are running (and trying to build a loadable kernel module for) right now.

the versions of kernel that you intend to build it for/run it on
at least the one you are running right now …

It would probably be a good idea to familiarize yourself with what it means to compile stuff
… to be able to use the AUR …

ERROR: Missing 4.14.268-1-MANJARO kernel modules tree for module 8821au/5.12.5.2.r125.g377d3ca. Refreshing PackageKit...

It is some error on your end. I downloaded the snapshot and built it calling makepkg. I did not try to install as I have no need for this:

makepkg -cs                               
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (Sat 05 Mar 2022 01:17:01 PM EST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for jrichard: 
resolving dependencies...
looking for conflicting packages...

Packages (1) dkms-3.0.3-1

Total Download Size:   0.04 MiB
Total Installed Size:  0.10 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 dkms-3.0.3-1-any       36.2 KiB  47.3 KiB/s 00:01 [----------------------] 100%
(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%
:: Processing package changes...
(1/1) installing dkms                              [----------------------] 100%
Optional dependencies for dkms
    linux-headers: build modules against the Arch kernel [installed]
    linux-lts-headers: build modules against the LTS kernel
    linux-zen-headers: build modules against the ZEN kernel
    linux-hardened-headers: build modules against the HARDENED kernel
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning rtl88xxau git repo...
Cloning into bare repository '/home/jrichard/Documents/rtl/rtl88xxau'...
remote: Enumerating objects: 12200, done.
remote: Counting objects: 100% (621/621), done.
remote: Compressing objects: 100% (477/477), done.
remote: Total 12200 (delta 238), reused 480 (delta 131), pack-reused 11579
Receiving objects: 100% (12200/12200), 73.56 MiB | 5.96 MiB/s, done.
Resolving deltas: 100% (8318/8318), done.
  -> Found dkms.conf
==> WARNING: Skipping verification of source file checksums.
==> Extracting sources...
  -> Creating working copy of rtl88xxau git repo...
Cloning into 'rtl88xxau'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Updated version: rtl88xxau-aircrack-dkms-git r1181.37e27f9-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 "rtl88xxau-aircrack-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl88xxau-aircrack-dkms-git r1181.37e27f9-1 (Sat 05 Mar 2022 01:17:29 PM EST)

It’s hard to tell but also it looks quite obvious:
That kernel - is it still available in Manjaro?
If not - no header files of it/for it are either.

Boot and use a current kernel.
and remove those that are no longer used and/or supported.

… (Q) are they supported?
… (A) can you still install it?

if you can’t - it’s no longer supported …

pamac install linux 515-headers or use pamac GUI

It looks like you are running 5.15, but the inxi is incomplete at the top. My original response noted to make sure that you have the appropriate kernel headers installed…

After carefully following the instructions I think I almost got,
I installed the right Header
I downloaded the dependencies (I think thats what they are called)
And Almost everything goes according to plan but as previously I previously said Im still getting the Kernel modules tree error. I dont know if this is of any help but here is what ive done,

Preparing...
Checking rtl8821au-dkms-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To install (11):
  m4                  1.4.19-1                                                    core   264.5 kB
  autoconf            2.71-1                                                      core   660.7 kB
  pkgconf             1.8.0-1                                                     core   59.0 kB
  flex                2.6.4-3                                                     core   304.4 kB
  gc                  8.2.0-2                  (Required By: make)                extra  238.6 kB
  guile               2.2.7-2                  (Required By: make)                extra  6.6 MB
  make                4.3-3                                                       core   493.2 kB
  bison               3.8.2-1                                                     core   803.5 kB
  patch               2.7.6-8                                                     core   94.7 kB
  automake            1.16.5-1                                                    core   627.5 kB
  dkms                3.0.3-1                  (Required By: rtl8821au-dkms-git)  extra  37.1 kB
To build (1):
  rtl8821au-dkms-git  5.12.5.2.r95.ge4ad4ba-1                                     AUR

Total download size: 10.2 MB
Total installed size: 57.3 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Download of m4 (1.4.19-1) started                                                                                   
Download of flex (2.6.4-3) started                                                                                  
Download of m4 (1.4.19-1) finished                                                                                  
Download of gc (8.2.0-2) started                                                                                    
Download of flex (2.6.4-3) finished                                                                                 
Download of pkgconf (1.8.0-1) started                                                                               
Download of pkgconf (1.8.0-1) finished                                                                              
Download of autoconf (2.71-1) started                                                                               
Download of gc (8.2.0-2) finished                                                                                   
Download of bison (3.8.2-1) started                                                                                 
Download of autoconf (2.71-1) finished                                                                              
Download of make (4.3-3) started                                                                                    
Download of bison (3.8.2-1) finished                                                                                
Download of guile (2.2.7-2) started                                                                                 
Download of make (4.3-3) finished                                                                                   
Download of dkms (3.0.3-1) started                                                                                  
Download of dkms (3.0.3-1) finished                                                                                 
Download of patch (2.7.6-8) started                                                                                 
Download of patch (2.7.6-8) finished                                                                                
Download of automake (1.16.5-1) started                                                                             
Download of automake (1.16.5-1) finished                                                                            
Download of guile (2.2.7-2) finished                                                                                
Checking keyring...                                                                                          [11/11]
Checking integrity...                                                                                        [11/11]
Loading packages files...                                                                                    [11/11]
Checking file conflicts...                                                                                   [11/11]
Checking available disk space...                                                                             [11/11]
Installing m4 (1.4.19-1)...                                                                                   [1/11]
Installing flex (2.6.4-3)...                                                                                  [2/11]
Installing pkgconf (1.8.0-1)...                                                                               [3/11]
Installing gc (8.2.0-2)...                                                                                    [4/11]
Installing autoconf (2.71-1)...                                                                               [5/11]
Installing guile (2.2.7-2)...                                                                                 [6/11]
Installing bison (3.8.2-1)...                                                                                 [7/11]
Installing make (4.3-3)...                                                                                    [8/11]
Installing patch (2.7.6-8)...                                                                                 [9/11]
Installing dkms (3.0.3-1)...                                                                                 [10/11]
Installing automake (1.16.5-1)...                                                                            [11/11]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                 [1/3]
Refreshing PackageKit...                                                                                       [2/3]
Updating the info directory file...                                                                            [3/3]
Cloning rtl8821au-dkms-git build files...
Generating rtl8821au-dkms-git information...

Building rtl8821au-dkms-git...
==> Making package: rtl8821au-dkms-git 5.12.5.2.r95.ge4ad4ba-1 (Sat 05 Mar 2022 04:32:32 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning 8821au-20210708 git repo...
Cloning into bare repository '/var/tmp/pamac-build-kevinp/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 | 87.00 KiB/s, done.
Resolving deltas: 100% (647/647), done.
  -> Found dkms.conf
==> Validating source files with sha256sums...
    8821au-20210708 ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> 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 (Sat 05 Mar 2022 04:33:21 PM EST)
==> Cleaning up...

Checking keyring...                                                                                            [1/1]
Checking integrity...                                                                                          [1/1]
Loading packages files...                                                                                      [1/1]
Checking file conflicts...                                                                                     [1/1]
Checking available disk space...                                                                               [1/1]
Installing rtl8821au-dkms-git (5.12.5.2.r125.g377d3ca-1)...                                                    [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                 [1/3]
Install DKMS modules                                                                                           [2/3]
==> ERROR: Missing 5.15.24-1-rt31-MANJARO kernel modules tree for module 8821au/5.12.5.2.r125.g377d3ca.
Refreshing PackageKit...                                                                                       [3/3]
Transaction successfully finished.

I removed my HDD where Manjaro was installed and made a fresh install on my SSD, I don’t know if this helps any but after doing that I’m behind on over 2.2 gigabytes of updates. And also I had to install the RT version of the header because the normal wouldn’t work.

And a huge thanks to everyone who has helped me so far!

That ain’t right.
Can’t be right.

so now:
if you want to use the AUR and dkms to build a kernel module that s not available in the standard way
you need to have:
base-devel (the package group)
the kernel headers of each kernel that you have installed and that you want to build the module for