Install a driver for Nineplus USB WiFi Adapter 802.11AC 1200 (rtl88x2bu)

It seems that dkms module failed to compile

how do I fix that ?

Can you remove it from pamac, then rebuild it and post a build log here?

I guess what you mean is remove it/uninstall it from add/remove. I can do that but have no idea how to rebuild it

I removed it .

Now push “Build” button again
Log will be accessible from an arrow button in the lower-right corner of pamac (it’s the real name of Add/Remove Software)

Preparing...
Checking dependencies...
Running pre-transaction hooks...
Remove DKMS modules
Removing rtl88x2bu-dkms-git (5.13.1.r189.12cfcd8-1)...
Transaction successfully finished.

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

Building rtl88x2bu-dkms-git...
==> Making package: rtl88x2bu-dkms-git 5.13.1.r189.12cfcd8-1 (Sat 12 Aug 2023 03:52:34 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating RTL88x2BU-Linux-Driver git repo...
==> Validating source files with sha256sums...
    RTL88x2BU-Linux-Driver ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of RTL88x2BU-Linux-Driver git repo...
Cloning into 'RTL88x2BU-Linux-Driver'...
done.
==> Starting pkgver()...
==> 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 "rtl88x2bu-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl88x2bu-dkms-git 5.13.1.r189.12cfcd8-1 (Sat 12 Aug 2023 03:52:41 PM EDT)
==> Cleaning up...

Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing rtl88x2bu-dkms-git (5.13.1.r189.12cfcd8-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Install DKMS modules
==> ERROR: Missing boot kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing bin kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing lib kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing tmp kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing usr kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing lost+found kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing mnt kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing lib64 kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing sbin kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing desktopfs-pkgs.txt kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing etc kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing srv kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing run kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing proc kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing home kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing opt kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing rootfs-pkgs.txt kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing root kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing dev kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing sys kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
==> ERROR: Missing var kernel headers for module rtl88x2bu/5.13.1.r189.12cfcd8.
Transaction successfully finished.

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

You need to install linux64-headers, dkms, git first
Then build again and provide a new log

It seems you have forgotten already. Please format terminal output properly. If we can’t read it, we can’t help.

Carry on…

@ Xephon
where do I get this header .git from

Yochanan - sorry I’m just not familiar enough here at the forum to know when I need to do certain things or when I don’t for the various inputs. I’ll try to remember now about terminal output .

git without a dot in front of it. Type it in pamac search field, it should be there

pamac shows git 2.41.0-2 is installed

Great.
Install base-devel package.
Then build again and provide a new log

…and linux-headers corresponding to your kernel number (above is example with 6.4)

Xephon, Teo; ok , I installed base-devel and then I built RTL88X2BU-dkms-git again ; the log file shows the same output with errors again ; so I uninstalled RTL88x2bu and checked - git- its installed- checked base-devel - it’s installed . so I reinstalled RTL88X2BU and get the same output. so I checked base -devel - when I click on base-devel /dependencies it shows many dependencies; when I ckick on /files that whole window is empty

Did you install linux64-headers and dkms packages?

ok , I installed linux64-headers; I looked at files while it was installing - many errors . which dkms ?

dkms is a separate package required to build kernel modules. Type dkms in pamac search

And you install all of the prerequisites before you try to build the module, not in one go.

@Xephon ,
ok, dkms is installed ; and so is r8125dkms and rtl88x2bu dkms

@Teo hmmm, do you think I’ve done some of it wrong then ?

and Thank You for your patience

Provide output of mhwd-kernel -li
If you have more than one kernel, you need to install headers for each of them to be able to compile kernel module without errors