Can't install DKMS modules

I’m installing v4l2-loopback, which I’m pleased to find exists in the official repos as a dkms module. Unfortunately, it fails to install. Here’s a simplified log of me installing dkms and v4l2:

Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Download of linux414-headers (4.14.203-1)
Download of dkms (2.8.3-1.1)
Download of linux58-headers (5.8.18-1)
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing dkms (2.8.3-1.1)...
Installing linux414-headers (4.14.203-1)...
Installing linux58-headers (5.8.18-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Updating module dependencies...
Install DKMS modules
Done. (this exited as a success according to pamac)

Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Download of v4l2loopback-dkms (0.12.5-1)
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing v4l2loopback-dkms (0.12.5-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Install DKMS modules
==> dkms install --no-depmod -m v4l2loopback -v 0.12.5 -k 5.8.18-1-MANJARO
==> depmod 5.8.18-1-MANJARO
==> Unable to install module v4l2loopback/0.12.5 for kernel 4.14.203-1-MANJARO: Missing kernel modules tree.

Do you know what went wrong, and how I could fix it? Google seems to point to missing headers being the issue, yet linux58-headers was installed above. Thanks in advance.

Update your system, reboot and try again.

I think that will not do anything

since the issue is kernel 4.14 which does not uninstall with an update.

For a DKMS package to install all installed kernels need there headers installed.
I ask myself why 4.14 is still installed, perhaps removing this kinda old kernel is a better idea

I’m on 5.8-MANJARO, and installed dkms with pamac. I selected linux58-headers and 414 is installed automatically, along with 58. Should I remove 414 and try again?

In principle a second kernel is advisable. If you currently run 5.8 [EOL] you should install another kernel not beeing EOL, check in #announcements. After installing e.g.5.9 or 4.19 (incl. headers), remove 4.14 (via MSM for example), reboot and then you could retry.

thanks for the advice, will attempt

on second thought i’ll wait for 5.10 as its going to be an LTS kernel and I don’t want to do this more times than necessary