[GH-ISSUE #61] [Bug]: Error! Bad return status for module build on kernel: 6.17.0-20-generic (x86_64) #55

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

Originally created by @Afonso-mine on GitHub (Apr 12, 2026).
Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/61

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

Linux fun-society 6.17.0-20-generic #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 01:28:37 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 06cb:00b7 Synaptics, Inc. Fingerprint reader [HP G6] Bus 001 Device 003: ID 04f2:b5ee Chicony Electronics Co., Ltd HP HD Camera Bus 001 Device 004: ID 0bda:b00b Realtek Semiconductor Corp. Realtek Bluetooth 4.2 Adapter Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

rfkill

0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no

dkms

rtl8812au/5.13.6-23: added
virtualbox/7.0.16, 6.17.0-19-generic, x86_64: installed
virtualbox/7.0.16, 6.17.0-20-generic, x86_64: installed

iw

phy#0
	Interface wlp58s0
		ifindex 3
		wdev 0x1
		addr 5c:ea:1d:b1:d6:f1
		ssid NOS-F0E4
		type managed
		channel 100 (5500 MHz), width: 80 MHz, center1: 5530 MHz
		txpower 26.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

On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

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)
: 7933100 (total system memory)
: 6.17.0-20-generic (kernel version)
: gcc-13 (version of gcc used to compile the kernel)
: gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
: dkms-3.0.11
: SecureBoot disabled
: ---------------------------

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: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
kernelver=6.17.0-20-generic ./dkms-make.sh...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.13.6-23 not found
Error! Bad return status for module build on kernel: 6.17.0-20-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information.
Command exited with non-zero status 10
Compile time: 2.11 seconds
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?

I was trying to install the driver but then, even after trying to reinstall it gave me this error

Building module:

Cleaning build area...

kernelver=6.17.0-20-generic ./dkms-make.sh...(bad exit status: 2)

ERROR (dkms apport): binary package for rtl8812au: 5.13.6-23 not found

Error! Bad return status for module build on kernel: 6.17.0-20-generic (x86_64)

Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information.

Command exited with non-zero status 10

Compile time: 2.11 seconds

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

I tried to update my OS but it did absolutely nothing

Originally created by @Afonso-mine on GitHub (Apr 12, 2026). Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/61 ### 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 Linux fun-society 6.17.0-20-generic #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 01:28:37 UTC 2 x86_64 x86_64 x86_64 GNU/Linux ### lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 06cb:00b7 Synaptics, Inc. Fingerprint reader [HP G6] Bus 001 Device 003: ID 04f2:b5ee Chicony Electronics Co., Ltd HP HD Camera Bus 001 Device 004: ID 0bda:b00b Realtek Semiconductor Corp. Realtek Bluetooth 4.2 Adapter Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ### rfkill 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no ### dkms ```text rtl8812au/5.13.6-23: added virtualbox/7.0.16, 6.17.0-19-generic, x86_64: installed virtualbox/7.0.16, 6.17.0-20-generic, x86_64: installed ``` ### iw ```text phy#0 Interface wlp58s0 ifindex 3 wdev 0x1 addr 5c:ea:1d:b1:d6:f1 ssid NOS-F0E4 type managed channel 100 (5500 MHz), width: 80 MHz, center1: 5530 MHz txpower 26.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 On branch main Your branch is up to date with 'origin/main'. nothing to commit, working tree clean ``` ### install-driver.sh ```text : --------------------------- : install-driver.sh v20241003 : x86_64 (kernel architecture) : x86_64 (architecture to send to gcc) : 8/8 (in-use/total processing units) : 7933100 (total system memory) : 6.17.0-20-generic (kernel version) : gcc-13 (version of gcc used to compile the kernel) : gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 : dkms-3.0.11 : SecureBoot disabled : --------------------------- 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: /usr/bin/kmodsign Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der Building module: Cleaning build area... kernelver=6.17.0-20-generic ./dkms-make.sh...(bad exit status: 2) ERROR (dkms apport): binary package for rtl8812au: 5.13.6-23 not found Error! Bad return status for module build on kernel: 6.17.0-20-generic (x86_64) Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information. Command exited with non-zero status 10 Compile time: 2.11 seconds 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? I was trying to install the driver but then, even after trying to reinstall it gave me this error ``` Building module: Cleaning build area... kernelver=6.17.0-20-generic ./dkms-make.sh...(bad exit status: 2) ERROR (dkms apport): binary package for rtl8812au: 5.13.6-23 not found Error! Bad return status for module build on kernel: 6.17.0-20-generic (x86_64) Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information. Command exited with non-zero status 10 Compile time: 2.11 seconds 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 ``` I tried to update my OS but it did absolutely nothing
Author
Owner

@anilsathyan7 commented on GitHub (May 5, 2026):

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)
: 16331336 (total system memory)
: 6.8.0-111-generic (kernel version)
: gcc-13 (version of gcc used to compile the kernel)
: gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
: dkms-3.0.11
: SecureBoot disabled
: ---------------------------

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: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
kernelver=6.8.0-111-generic ./dkms-make.sh.....(bad exit status: 2)
**ERROR (dkms apport): binary package for rtl8812au: 5.13.6-23 not found**
Error! Bad return status for module build on kernel: 6.8.0-111-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information.
Command exited with non-zero status 10
Compile time: 36.15 seconds
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

Getting same error on latest ubuntu 24.04

<!-- gh-comment-id:4380186327 --> @anilsathyan7 commented on GitHub (May 5, 2026): ``` 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) : 16331336 (total system memory) : 6.8.0-111-generic (kernel version) : gcc-13 (version of gcc used to compile the kernel) : gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 : dkms-3.0.11 : SecureBoot disabled : --------------------------- 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: /usr/bin/kmodsign Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der Building module: Cleaning build area... kernelver=6.8.0-111-generic ./dkms-make.sh.....(bad exit status: 2) **ERROR (dkms apport): binary package for rtl8812au: 5.13.6-23 not found** Error! Bad return status for module build on kernel: 6.8.0-111-generic (x86_64) Consult /var/lib/dkms/rtl8812au/5.13.6-23/build/make.log for more information. Command exited with non-zero status 10 Compile time: 36.15 seconds 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 ``` Getting same error on latest ubuntu 24.04
Author
Owner

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

Hi @anilsathyan7

I have more or less discontinued maintaining this repo as better, modern options are available. Starting with kernel 6.14, a fully modern, mac80211 driver is in the Linux kernel. If using an older kernel, I recommend:

https://github.com/lwfinger/rtw88

That is where we wrote the new driver that is in the kernel.

Remember to remove the driver in this repo:

sudo sh remove-driver.sh

<!-- gh-comment-id:4382414501 --> @morrownr commented on GitHub (May 5, 2026): Hi @anilsathyan7 I have more or less discontinued maintaining this repo as better, modern options are available. Starting with kernel 6.14, a fully modern, mac80211 driver is in the Linux kernel. If using an older kernel, I recommend: https://github.com/lwfinger/rtw88 That is where we wrote the new driver that is in the kernel. Remember to remove the driver in this repo: sudo sh remove-driver.sh
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#55
No description provided.