Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: dimgel on 04 July 2022, 15:53:56

Title: [SOLVED] /usr/bin/dkms: line 1033: sha512: command not found
Post by: dimgel on 04 July 2022, 15:53:56
Hi all.

Code: [Select]
...
:: Running post-transaction hooks...
(1/5) Updating module dependencies...
(2/5) Install DKMS modules
==> dkms install --no-depmod vboxhost/6.1.34_OSE -k 5.15.52-1-lts
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
==> dkms install --no-depmod nvidia/515.57 -k 5.15.52-1-lts
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
...

Instead, I have /usr/bin/sha512sum on my system.

UPD. After that mkinitcpio gives me this warning I haven't seen before, maybe related to the error above:

Code: [Select]
==> Generating module dependencies
depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.TeVOOF/root/lib/modules/5.15.52-1-lts: No such file or directory
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: Lancia on 04 July 2022, 16:53:28
Hi all.

Code: [Select]
...
:: Running post-transaction hooks...
(1/5) Updating module dependencies...
(2/5) Install DKMS modules
==> dkms install --no-depmod vboxhost/6.1.34_OSE -k 5.15.52-1-lts
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
==> dkms install --no-depmod nvidia/515.57 -k 5.15.52-1-lts
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
/usr/bin/dkms: line 1033: sha512: command not found
...

Instead, I have /usr/bin/sha512sum on my system.

UPD. After that mkinitcpio gives me this warning I haven't seen before, maybe related to the error above:

Code: [Select]
==> Generating module dependencies
depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.TeVOOF/root/lib/modules/5.15.52-1-lts: No such file or directory

So I cloned the dkms sources and did a grep -r sha512 . and got this output:
Code: [Select]
./dkms.in:                    kmodsign sha512 $mok_signing_key $mok_certificate "$built_module"
./dkms.in:                    eval $sign_file sha512 $mok_signing_key $mok_certificate "$built_module"

I do not know if sha512 is an internal command of dkms or an external program, but my guess would be to change sha512 to sha512sum and see if it gets fixed.
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: garza on 04 July 2022, 17:19:36
Quote
I do not know if sha512 is an internal command of dkms or an external program, but my guess would be to change sha512 to sha512sum and see if it gets fixed.
Yes. Replacing sha512 for sha512sum should fix it.
dkms is just verifying the integrity (https://man.archlinux.org/man/sha512sum.1) of the keys and it's certificate before signing it.
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: Hitman on 04 July 2022, 20:57:38
known issue in arch linux upstream https://github.com/dell/dkms/issues/229
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: dimgel on 04 July 2022, 21:29:46
world/dkms 3.0.5-1.1 is good, thank you! :)

// Although mkinitcpio's depmod warning is still there, but it's likely unrelated then.
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: Lancia on 05 July 2022, 07:37:25
world/dkms 3.0.5-1.1 is good, thank you! :)

// Although mkinitcpio's depmod warning is still there, but it's likely unrelated then.
Apparently people at Arch had the same problem too:
https://bbs.archlinux.org/viewtopic.php?pid=2044391
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: Hitman on 05 July 2022, 22:43:09
the mkinitcpio warning was also fixed today with mkinitcpio 31-3
Title: Re: /usr/bin/dkms: line 1033: sha512: command not found
Post by: dimgel on 06 July 2022, 08:27:42
the mkinitcpio warning was also fixed today with mkinitcpio 31-3

Indeed. Thanks!