WiFi Adapter RTL8812AU driver installation fails with the latest kernel: 5.15.0-27-generic (x86_64)

donvito7

New Member
Joined
May 11, 2022
Messages
4
Reaction score
0
Credits
57
All what I do is:
apt update
apt install git dkms
git clone https://github.com/gnab/rtl8812au.git
cp -r rtl8812au /usr/src/rtl8812au-4.2.2
dkms add -m rtl8812au -v 4.2.2
dkms build -m rtl8812au -v 4.2.2

but it fails on:

dkms build -m rtl8812au -v 4.2.2

Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' all KVER=5.15.0-27-generic........(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 4.2.2 not found
Error! Bad return status for module build on kernel: 5.15.0-27-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.2.2/build/make.log for more information.

--------------------

DKMS make.log for rtl8812au-4.2.2 for kernel 5.15.0-27-generic (x86_64)
Sun 8 May 21:30:30 BST 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-27-generic/build M=/var/lib/dkms/rtl8812au/4.2.2/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-27-generic'
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_br_ext.o
/var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_br_ext.c:25:10: fatal error: net/ipx.h: No such file or directory
25 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:285: /var/lib/dkms/rtl8812au/4.2.2/build/core/rtw_br_ext.o] Error 1
make[1]: *** [Makefile:1875: /var/lib/dkms/rtl8812au/4.2.2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-27-generic'
make: *** [Makefile:1086: modules] Error 2
------------------------------------------------------------------------------------

Chipset is actually RTL8811AU but worked perfectly with older kernels.

Any help much appreciated.
 


Welcome to the forums
Which distribution are you using
 
Why are trying to manually compile the driver if there is a package in the default repos?
Code:
rtl8812au-dkms/jammy,jammy 4.3.8.12175.20140902+dfsg-0ubuntu15 all
  dkms source for the r8812au network driver
 
hmmm thank you. I have not seen this. I tried it the install was successful with no errors but the interface for the USB dongle is not coming up. Could you suggest how to diagnose it?
 
Do you mean you have no icon in the system tray for WiFi,
this happened to me, and he following line in a terminal will
bring the icon back and keep it there when the terminal is closed.

nohup nm-applet &
 
no not really. In settings I have only build in wifi listed. Normally if the secondary adapter is installed you have a choice of both.

I can see that device is detected lsusb:
Bus 001 Device 012: ID 0bda:0811 Realtek Semiconductor Corp. Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz]

but the driver does not seem to work. Just wonder if I can find any debug information

lsmod | grep -i wifi
iwlwifi 446464 1 iwlmvm
cfg80211 958464 4 iwlmvm,8812au,iwlwifi,mac80211
 
I tried it the install was successful with no errors but the interface for the USB dongle is not coming up. Could you suggest how to diagnose it?
Is this a Laptop? is the wireless switched on [using the dedicated switch or key combination]
If its a desktop, have you tried a different USB port ?
 
What is the out put of
Code:
rfkill list
Also make sure secure boot is turned off. Realteak won't usually work with secure boot turned on.
 
Manual installations tend not to work when there are more than a couple of steps, at least in my experience. I successfully did a command line install of anki flashcard software on Ubuntu, that was only 3 steps, and isn't technically a manual install since it ends with ./install.sh

If you find a wifi adapter with an ralink chipset, then you won't have to install drivers most likely. I recently had an issue with one of my desktops: ubuntu studio did not detect the wifi interface, so I plugged in a tp link wifi adapter from years ago when I had this same problem when using linux.
 

Members online


Top