Problem with RTL8812AU (AirCrack-NG)


Hi, I have been trying to install the driver for my WiFi adapter but I have some problems.

Here is my output using make dkms_install:

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

Here is my output using make:

❯ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.7-200.fc37.x86_64/build M=/home/chunchoc/Downloads/rtl8812au  modules
make[1]: *** /lib/modules/6.1.7-200.fc37.x86_64/build: No such file or directory.  Stop.
make: *** [Makefile:1730: modules] Error 2

I would appreciate your help. :slight_smile:

It looks like you’re trying to compile a module that already exists for that version/kernel? Can you sudo modprobe 8812au?

1 Like

It show me this:

❯ sudo modprobe 8812au
modprobe: FATAL: Module 8812au not found in directory /lib/modules/6.1.7-200.fc37.x86_64

Hmmm, looks like you might not have the kernel-devel installed for that kernel.

I solved the problem.
For some reason I didn’t have the build directory in the version of kernel I was using , so I just switched to another version that did have it and it worked.

I used:

sudo make && sudo make install

You’ll want to make sure you use akmods or dkms or else you’ll need to do this again for every kernel update.

1 Like

As Scott said, installing manually means the user must recompile with every kernel update.
Using akmods or dkms to compile and install the module would mean it is done automatically for each kernel upgrade so it becomes install it and forget it for future upgrades.

That also should never be done with sudo make. Instead it should be done with make && sudo make install so all the files remain owned by the user and not root in the local directory tree. The install manages ownership during the install portion for system installed files.

Unable to use Wifi Dongle (T2U Archer) - #2 by vgaetera

Thank you all! <3

1 Like