[GH-ISSUE #59] [Bug]: Correct driver installation not possible #53

Open
opened 2026-10-13 19:33:39 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @Herty76 on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/59

Checklist

  • I am not using this driver from inside a Virtual Machine.
  • I performed all of the installation steps as written.
  • I have read the FAQ and my question is not answered there.

Is Secure Boot enabled?

No

uname

Herty76

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0bda:0811 Realtek Semiconductor Corp. Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz] Bus 001 Device 003: ID 0e6a:02c0 Megawin Technology Co., Ltd Defender Gaming Keyboard Bus 001 Device 004: ID 093a:2532 Pixart Imaging, Inc. Gaming Mouse Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

rfkill

0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

dkms

rtl8812au/5.13.6-23: added
rtl8821au/5.12.5.2: added

iw

phy#0
        Interface wlan0
                ifindex 3
                wdev 0x1
                addr 00:c0:ca:b7:db:ca
                type monitor
                channel 7 (2442 MHz), width: 20 MHz (no HT), center1: 2442 MHz
                txpower 20.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks   overlmt hashcoltx-bytes        tx-packets
                        0       0       0       0       0       0       0     00

git status

Auf Branch main
Ihr Branch ist auf demselben Stand wie 'origin/main'.

nichts zu committen, Arbeitsverzeichnis unverändert

install-driver.sh

$ sudo ./install-driver.sh
: ---------------------------
: install-driver.sh v20241003
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 8/8 (in-use/total processing units)
: 16324028 (total system memory)
: 6.18.9+kali-amd64 (kernel version)
: gcc-15 (version of gcc used to compile the kernel)
: gcc (Debian 15.2.0-12) 15.2.0
: dkms-3.2.2
: mokutil not installed (Secure Boot status unknown)
: ---------------------------

Checking for previously installed drivers...
Removing a driver that was added to dkms.
Deleting module rtl8812au/5.13.6-23 completely from the DKMS tree.
Removing 8812au.conf from /etc/modprobe.d
Removing source files from /usr/src/rtl8812au-5.13.6-23
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 8812au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8812au-5.13.6-23
Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source -> /usr/src/rtl8812au-5.13.6-23
The driver was added to dkms successfully.
: ---------------------------

Sign command: /lib/modules/6.18.9+kali-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module(s)...(bad exit status: 2)
Failed command:
kernelver=6.18.9+kali-amd64 ./dkms-make.sh

Error! Bad return status for module build on kernel: 6.18.9+kali-amd64 (x86_64)
Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information.
An error occurred. dkms build error:  10
Please report this error.
Please copy all screen output and paste it into the problem report.
Run the following before reattempting installation.
$ sudo ./remove-driver.sh

What happened?

Hello, the connection to the USB stick keeps dropping, and scanning the Wi-Fi network is therefore not possible.

Regards, Markus

Originally created by @Herty76 on GitHub (Feb 28, 2026). Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/59 ### Checklist - [x] I am not using this driver from inside a Virtual Machine. - [x] I performed all of the [installation steps](/README.md#installation-steps) as written. - [x] I have read the [FAQ](/FAQ.md) and my question is not answered there. ### Is Secure Boot enabled? No ### uname Herty76 ### lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0bda:0811 Realtek Semiconductor Corp. Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz] Bus 001 Device 003: ID 0e6a:02c0 Megawin Technology Co., Ltd Defender Gaming Keyboard Bus 001 Device 004: ID 093a:2532 Pixart Imaging, Inc. Gaming Mouse Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ### rfkill 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no ### dkms ```text rtl8812au/5.13.6-23: added rtl8821au/5.12.5.2: added ``` ### iw ```text phy#0 Interface wlan0 ifindex 3 wdev 0x1 addr 00:c0:ca:b7:db:ca type monitor channel 7 (2442 MHz), width: 20 MHz (no HT), center1: 2442 MHz txpower 20.00 dBm multicast TXQ: qsz-byt qsz-pkt flows drops marks overlmt hashcoltx-bytes tx-packets 0 0 0 0 0 0 0 00 ``` ### git status ```text Auf Branch main Ihr Branch ist auf demselben Stand wie 'origin/main'. nichts zu committen, Arbeitsverzeichnis unverändert ``` ### install-driver.sh ```text $ sudo ./install-driver.sh : --------------------------- : install-driver.sh v20241003 : x86_64 (kernel architecture) : x86_64 (architecture to send to gcc) : 8/8 (in-use/total processing units) : 16324028 (total system memory) : 6.18.9+kali-amd64 (kernel version) : gcc-15 (version of gcc used to compile the kernel) : gcc (Debian 15.2.0-12) 15.2.0 : dkms-3.2.2 : mokutil not installed (Secure Boot status unknown) : --------------------------- Checking for previously installed drivers... Removing a driver that was added to dkms. Deleting module rtl8812au/5.13.6-23 completely from the DKMS tree. Removing 8812au.conf from /etc/modprobe.d Removing source files from /usr/src/rtl8812au-5.13.6-23 Finished checking for and uninstalling previously installed drivers. : --------------------------- Starting installation. Copying 8812au.conf to /etc/modprobe.d The dkms installation routines are in use. Copying source files to /usr/src/rtl8812au-5.13.6-23 Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source -> /usr/src/rtl8812au-5.13.6-23 The driver was added to dkms successfully. : --------------------------- Sign command: /lib/modules/6.18.9+kali-amd64/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Building module(s)...(bad exit status: 2) Failed command: kernelver=6.18.9+kali-amd64 ./dkms-make.sh Error! Bad return status for module build on kernel: 6.18.9+kali-amd64 (x86_64) Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information. An error occurred. dkms build error: 10 Please report this error. Please copy all screen output and paste it into the problem report. Run the following before reattempting installation. $ sudo ./remove-driver.sh ``` ### What happened? Hello, the connection to the USB stick keeps dropping, and scanning the Wi-Fi network is therefore not possible. Regards, Markus
Author
Owner

@andor-b commented on GitHub (Mar 5, 2026):

Hey, whats the status of this issue.
I have the same problem

<!-- gh-comment-id:4006518077 --> @andor-b commented on GitHub (Mar 5, 2026): Hey, whats the status of this issue. I have the same problem
Author
Owner

@morrownr commented on GitHub (Mar 5, 2026):

From the very top of the README:

Notice: An updated standards compliant (mac80211), in-kernel driver for rtl8812au chipset based adapters and modules is available and as of kernel 6.14 is of good quality. If your distro uses kernel 6.14 or later, there is no need to install this driver. The in-kernel driver is part of the rtw88 series of drivers. The in-kernel driver is Linux Standards compliant (mac80211) and is a much better driver than this one. This driver will no longer get API related updates beyond kernel 6.14 (unless provided by a user). If you use a kernel prior to 6.14, it is possible to use the new standards compliant driver by going to the following repo:

https://github.com/lwfinger/rtw88

If you decide to use the in-kernel driver, remember to first remove the driver in this repo. You can run the following to remove the driver in this repo:

$ sudo sh remove-driver.sh

It has been my pleasure to maintain this driver for the last several years. Thanks to all of those who helped.

Remember: Ask not what your operating system can do for you, but what you can do for your operating system.

Regards,

@morrownr

<!-- gh-comment-id:4006909514 --> @morrownr commented on GitHub (Mar 5, 2026): From the very top of the README: Notice: An updated standards compliant (mac80211), in-kernel driver for rtl8812au chipset based adapters and modules is available and as of kernel 6.14 is of good quality. If your distro uses kernel 6.14 or later, there is no need to install this driver. The in-kernel driver is part of the rtw88 series of drivers. The in-kernel driver is Linux Standards compliant (mac80211) and is a much better driver than this one. This driver will no longer get API related updates beyond kernel 6.14 (unless provided by a user). If you use a kernel prior to 6.14, it is possible to use the new standards compliant driver by going to the following repo: https://github.com/lwfinger/rtw88 If you decide to use the in-kernel driver, remember to first remove the driver in this repo. You can run the following to remove the driver in this repo: $ sudo sh remove-driver.sh It has been my pleasure to maintain this driver for the last several years. Thanks to all of those who helped. Remember: Ask not what your operating system can do for you, but what you can do for your operating system. Regards, @morrownr
Author
Owner

@andor-b commented on GitHub (Mar 5, 2026):

Yooo that worked brother. Much obliged for your hard work!

<!-- gh-comment-id:4007614262 --> @andor-b commented on GitHub (Mar 5, 2026): Yooo that worked brother. Much obliged for your hard work!
Author
Owner

@morrownr commented on GitHub (Mar 5, 2026):

Great. Feel free to stop by anytime. The Main Menu of this site is:

https://github.com/morrownr/USB-WiFi

<!-- gh-comment-id:4007793619 --> @morrownr commented on GitHub (Mar 5, 2026): Great. Feel free to stop by anytime. The Main Menu of this site is: https://github.com/morrownr/USB-WiFi
Sign in to join this conversation.
No labels
bug
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morrownr/8812au-20210820#53
No description provided.