# DKMS error

**URL:** <https://forum.endeavouros.com/t/dkms-error/62236>\
**Category:** Applications\
**Created:** [October 24, 2024, 5:47pm UTC](https://forum.endeavouros.com/t/dkms-error/62236 "2024-10-24T17:47:55Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbod](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mbod/32/16833_2.png) [@mbod](https://forum.endeavouros.com/u/mbod)\
**Post date:** [October 24, 2024, 5:47pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/1 "2024-10-24T17:47:55Z")

</div>

I am seeing dkms errors when installing / updating kernels. I am not sure when they started to appear.  
I am using zfs and when dkms is excecuted during kernel install or update I see this:

```auto
/usr/lib/kernel/install.d/40-dkms.install: Zeile 4: /../trash/postinst.d/dkms: Datei oder Verzeichnis nicht gefunden

```

When I look at the script `40-dkms.install` it does not make sense to me:

```auto
#!/bin/sh

if ["$1" = "add"]; then
	/../trash/postinst.d/dkms "$2"
fi

if ["$1" = "remove"]; then
	/../trash/prerm.d/dkms "$2"
fi

```

It is using absolute path like `/../trash/postinst.d/dkms` or `/../trash/prerm.d/dkms`. That seems strange.

I removed the dkms package and reinstalled it. But that does not change anything.

Does anybody know what is going on here?

---

<div class="post-metadata">

**Author:** ![Enthrall](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@Enthrall](https://forum.endeavouros.com/u/Enthrall)\
**Post date:** [October 24, 2024, 7:15pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/2 "2024-10-24T19:15:29Z")

</div>

I noticed the same thing. entries from /efi/loader/entries did not get properly removed. I don’t know what prerm.d relates to because kernell-install runs both. I assume remove the entry but do they both do the same thing idk.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 7:20pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/3 "2024-10-24T19:20:56Z")

</div>

Is that an update to systemd? What package owns `/usr/lib/kernel/install.d/40-dkms.install`?

---

<div class="post-metadata">

**Author:** ![Enthrall](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@Enthrall](https://forum.endeavouros.com/u/Enthrall)\
**Post date:** [October 24, 2024, 7:33pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/4 "2024-10-24T19:33:28Z")

</div>

ok I see there are scripts missing in /…/trash/postinst.d/dkms and the prerm.d folders that didn’t get run. I guess if I can find these and see what they say I can move them there or at least see what didn’t get complete.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 7:35pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/5 "2024-10-24T19:35:08Z")

</div>

It looks like it is coming from the latest version of dkms.

The beginning of that path is supposed to be replaced with an absolute path but for some reason it is getting replaced with `..` instead of the correct path.

Obviously. `/../` doesn’t make any sense.

---

<div class="post-metadata">

**Author:** ![Enthrall](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@Enthrall](https://forum.endeavouros.com/u/Enthrall)\
**Post date:** [October 24, 2024, 7:36pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/6 "2024-10-24T19:36:36Z")

</div>

> [@dalto](#):
>
> hat path is supposed to be replaced with an absolute path but for some reason it is getting replaced with `..` instead of the correct path.
> 
> Obviously. `/../` doesn’t make any sense.

yep I found a script here [https://gitlab.archlinux.org/archlinux/packaging/packages/dkms](https://gitlab.archlinux.org/archlinux/packaging/packages/dkms)  
and here [https://github.com/dell/dkms/blob/v3.1.1/kernel\_install.d\_dkms.in](https://github.com/dell/dkms/blob/v3.1.1/kernel_install.d_dkms.in)

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 7:44pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/7 "2024-10-24T19:44:20Z")

</div>

The issue seems to be that the latest version moved the scripts but kconf is set like this: `KCONF=/../trash` in the PKGBUILD.

---

<div class="post-metadata">

**Author:** ![Enthrall](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@Enthrall](https://forum.endeavouros.com/u/Enthrall)\
**Post date:** [October 24, 2024, 7:51pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/8 "2024-10-24T19:51:35Z")

</div>

dkms script is in /usr/share/libalpm/scripts  
maybe these are totally different scripts with the same name?

---

<div class="post-metadata">

**Author:** ![mbod](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mbod/32/16833_2.png) [@mbod](https://forum.endeavouros.com/u/mbod)\
**Post date:** [October 24, 2024, 8:07pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/9 "2024-10-24T20:07:54Z")

</div>

> [@dalto](#):
>
> The issue seems to be that the latest version moved the scripts but kconf is set like this: `KCONF=/../trash` in the PKGBUILD.

Yes, but this part of the PKGBUILD already changed in version 3.0.12 of the package.

> **[upgpkg: 3.0.12-1 (98a79c54) · Commits · Arch Linux / Packaging / Packages /...](https://gitlab.archlinux.org/archlinux/packaging/packages/dkms/-/commit/98a79c546e5c6173d953e08709b1e877b21bb860)**
>
> \- Related to #2.

That package was already published in January. I can hardly believe that I missed this error message for so long.

May be this s a “regression” with dkms version 3.1, which is new since yesterday. But I could not find anything in the upstream issue tracker.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 8:11pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/10 "2024-10-24T20:11:58Z")

</div>

The PKGBUILD change has been there for some time but in the release notes for 3.1.0 is this:

> Install `kernel-install` drop-in to `/usr/lib` instead of `/etc`.

> **[Release v3.1.0 - New output & small improvements · dell/dkms](https://github.com/dell/dkms/releases/tag/v3.1.0)**
>
> User visible changes:
> 
> New more condensed output for most of the tasks.
> Allow running the MOK certificate generation as a standalone command (Nvidia / Gnome Software integration).
> Install kernel-in...

---

<div class="post-metadata">

**Author:** ![mbod](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mbod/32/16833_2.png) [@mbod](https://forum.endeavouros.com/u/mbod)\
**Post date:** [October 24, 2024, 8:12pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/11 "2024-10-24T20:12:05Z")

</div>

> [@mbod](#):
>
> May be this s a “regression” with dkms version 3.1, which is new since yesterday.

I just downgraded to previous version 3.0.13-1 and this does not show this error message.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 8:12pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/12 "2024-10-24T20:12:26Z")

</div>

Yes, see my comment above.

---

<div class="post-metadata">

**Author:** ![mbod](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mbod/32/16833_2.png) [@mbod](https://forum.endeavouros.com/u/mbod)\
**Post date:** [October 24, 2024, 8:14pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/13 "2024-10-24T20:14:18Z")

</div>

What does that mean then? PKGBUILD needs to be changed to handle dkms 3.1?

PS  
I just create a new issue for the DKMS package:

> **[new error message with package 3.1.1-1 (#5) · Issues · Arch Linux / Packaging...](https://gitlab.archlinux.org/archlinux/packaging/packages/dkms/-/issues/5)**
>
> With package version 3.1.1-1 I am seeing new error message in the logs when installing a new kernel resp. updating a kernel: /usr/lib/kernel/install.d/40-dkms.install: Zeile 4:...

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 8:22pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/14 "2024-10-24T20:22:37Z")

</div>

I believe that is the case but I am not sure what the correct change is without deeper investigation.

It does look like a packaging issue to me though after a quick peek between doing other things.

It seems that clearly, `/../trash/postinst.d/dkms` is wrong.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 10:32pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/16 "2024-10-24T22:32:56Z")

</div>

What you are describing is all normal.

kernel-install is what calls the script but the script itself is the issue.

---

<div class="post-metadata">

**Author:** ![Enthrall](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@Enthrall](https://forum.endeavouros.com/u/Enthrall)\
**Post date:** [October 24, 2024, 10:39pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/17 "2024-10-24T22:39:20Z")

</div>

Any idea where the /trash folders are getting created?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 24, 2024, 10:42pm UTC](https://forum.endeavouros.com/t/dkms-error/62236/18 "2024-10-24T22:42:36Z")

</div>

> [@Enthrall](#):
>
> Any idea where the /trash folders are getting created?

That isn’t the issue. The issue is the PKGBUILD is creating the script with the wrong path.

---

<div class="post-metadata">

**Author:** ![Enthrall](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@Enthrall](https://forum.endeavouros.com/u/Enthrall)\
**Post date:** [October 25, 2024, 1:30am UTC](https://forum.endeavouros.com/t/dkms-error/62236/20 "2024-10-25T01:30:14Z")

</div>

Removing these instruction since the dkms.install is for debian. You can probably just remove the file in /lib/kernel/install.d
