Installing drivers for my USB wifi dongle but can't find linux-header/kernel-devel packages?

Hi @everyone,

Thanks for having a look at this… I’m stuck and I’m not familiar with kernel issues to understand why I can’t just install the linux-header/kernel-devel dependencies, as I can’t even find them, and there doesn’t seem to be any info I can search for as to why!?
I’ve tried multiple packages as per the 3 entries of failed driver installation, so some help with cleaning that up could be helpful too… chz

sudo pacman -S linux-headers ✔ 
warning: linux54-headers-5.4.150-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux54-headers-5.4.150-1

Total Installed Size:  113.59 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                           [########################################] 100%
(1/1) checking package integrity                                         [########################################] 100%
(1/1) loading package files                                              [########################################] 100%
(1/1) checking for file conflicts                                        [########################################] 100%
(1/1) checking available disk space                                      [########################################] 100%
:: Running pre-transaction hooks...
(1/2) Remove upgraded DKMS modules
== Unable to remove module 8812au/5.6.4.2_35491.20191025 for kernel 5.4.150-1-MANJARO: Not found in dkms status output.
== Unable to remove module rtl8821CU/5.4.1 for kernel 5.4.150-1-MANJARO: Not found in dkms status output.
== Unable to remove module rtl8821cu/5.4.11229828dcb for kernel 5.4.150-1-MANJARO: Not found in dkms status output.
(2/2) Save Linux kernel modules
:: Processing package changes...
(1/1) reinstalling linux54-headers                                       [########################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
== Unable to install module 8812au/5.6.4.2_35491.20191025 for kernel 5.4.150-1-MANJARO: Missing kernel modules tree.
== Unable to install module rtl8821CU/5.4.1 for kernel 5.4.150-1-MANJARO: Missing kernel modules tree.
== Unable to install module rtl8821cu/5.4.11229828dcb for kernel 5.4.150-1-MANJARO: Missing kernel modules tree.
(4/4) Restore Linux kernel modules

Warning: Kernel has been updated. Modules of the current kernel have been backed up so you can continue to use your computer. However, the new kernel will only work at next boot.

:pray:

You already have the kernel headers installed, however the driver is apparently not compatible with kernel 5.4. Try 5.10 LTS or 5.14 stable.

Have you tried rtl88xxau-aircrack-dkms-git or rtl8812au-dkms-git in the AUR (Arch User Repository)?

Tip: When pasting terminal output on Discourse forums, one can either…

  • Highlight it and use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    text
    ```

  • Use HTML:

    <pre><code>
    text
    </pre></code>

Please edit your post accordingly. Quite a few of the lines are cut off.

1 Like

Thank you for taking the time to educate me, I appreciate it ! :+1: I knew I was off but I’d done what I could do and ran out of time to debug the post as I’d run out of time to debug the first problem of driver installation also :stuck_out_tongue:

After installing the 5.10 headers I’ve had success in installing via DKMS

sudo pacman -S linux-headers                                                                      ✔  6s  
:: There are 10 providers available for linux-headers:
:: Repository core
   1) linux414-headers  2) linux419-headers  3) linux44-headers  4) linux49-headers  5) linux510-headers
   6) linux513-headers  7) linux514-headers  8) linux515-headers  9) linux54-headers
:: Repository community
   10) linux510-rt-headers

Enter a number (default=1): 5
resolving dependencies...
looking for conflicting packages...

Packages (1) linux510-headers-5.10.70-1

Total Download Size:    28.57 MiB
Total Installed Size:  123.68 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 linux510-headers-5.10.70-1-x86_64            28.6 MiB   304 KiB/s 01:36 [########################################] 100%
(1/1) checking keys in keyring                                           [########################################] 100%
(1/1) checking package integrity                                         [########################################] 100%
(1/1) loading package files                                              [########################################] 100%
(1/1) checking for file conflicts                                        [########################################] 100%
(1/1) checking available disk space                                      [########################################] 100%
:: Processing package changes...
(1/1) installing linux510-headers                                        [########################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> dkms install --no-depmod -m rtl8821CU -v 5.4.1 -k 5.10.70-1-MANJARO
==> dkms install --no-depmod -m rtl8821cu -v 5.4.11229828dcb -k 5.10.70-1-MANJARO
Error! Module version v5.4.1_28754.20180921_COEX20180712-3232 for 8821cu.ko.xz
is not newer than what is already found in kernel 5.10.70-1-MANJARO (v5.4.1_28754.20180921_COEX20180712-3232).
You may override by specifying --force.
==> dkms install --no-depmod -m 8821au -v 5.8.2.3.r92.gcef024f -k 5.10.70-1-MANJARO
==> dkms install --no-depmod -m 8812au -v 5.6.4.2_35491.20191025 -k 5.10.70-1-MANJARO
==> depmod 5.10.70-1-MANJARO

However now I have 4 drivers of which 3 I won’t need haha… can I just uninstall via DKMS (I’ll look up the man page for it) or is it another route?

Please know that an AUR buildscript is created for Archlinux and therefore you need to observe one crucial point.

Arch only supports the latest LTS kernel and the latest stable kernel - as seen on kernel.org.

With that in mind - when having a need to build a kernel modules for devices which have no builtin kernel drivers you will have to use the equivalent kernel on Manjaro.

This will exclude any LTS kernel below the latest - at time of writing this is 5.10 - and for the stable kernel - as of time of writing - this is 5.14.

While the above may not be 100% accurate and it may on some occations succeed using other kernels - it is important to take into consideration when you get problems during the build process.

To answer that question - no you cannot uninstall them - unless you remove the kernels they are built for.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.