Dpkg issue in Kicksecure/Debian

Dear Support,

I have a problem with lpkg. Since an update made weeks ago I get various error messages with every apt update. It seems to be dependency problems or configuration problems. Since I don’t know how to solve the problem, I tried to reinstall lpkg. Unfortunately without success. I get the following terminal output.

Previously unselected package linux-headers-5.10.0-10-common is selected.
(Read database … 204519 files and directories are currently installed).
Preparation for unpacking …/0-linux-headers-5.10.0-10-common_5.10.84-1_al
l.deb …
Unpacking linux-headers-5.10.0-10-common (5.10.84-1) …
Previously unselected package linux-kbuild-5.10 is selected.
Preparing to unpack …/1-linux-kbuild-5.10_5.10.84-1_amd64.deb …
Unpacking linux-kbuild-5.10 (5.10.84-1) …
Previously unselected package linux-headers-5.10.0-10-amd64 is selected.
Preparing to unpack …/2-linux-headers-5.10.0-10-amd64_5.10.84-1_amd
64.deb …
Unpacking linux-headers-5.10.0-10-amd64 (5.10.84-1) …
Previously unselected package linux-headers-amd64 is selected.
Preparing to unpack …/3-linux-headers-amd64_5.10.84-1_amd64.deb …
Unpacking linux-headers-amd64 (5.10.84-1) …
Previously unselected package lkrg-dkms is selected.
Preparing to unpack …/4-lkrg-dkms_0.9.1-5_all.deb …
Unpacking lkrg-dkms (0.9.1-5) …
Previously unselected package lkrg-systemd is selected.
Preparing to unpack …/5-lkrg-systemd_0.9.1-5_all.deb …
Unpacking lkrg-systemd (0.9.1-5) …
linux-headers-5.10.0-10-common (5.10.84-1) is set up …
linux-kbuild-5.10 (5.10.84-1) is set up …
lkrg-dkms (0.9.1-5) is set up …
/usr/lib/dkms/common.postinst: 53: [: Illegal number:
Loading new lkrg-0.9.1 DKMS files…
Building for 5.15.0-1-amd64
Building initial module for 5.15.0-1-amd64
Error! Bad return status for module build on kernel: 5.15.0-1-amd64 (x86_64)
Consult /var/lib/dkms/lkrg/0.9.1/build/make.log for more information.
dpkg: Error processing package lkrg-dkms (–configure):
“installed lkrg-dkms script of package post-installation” subprocess returned
returned the error value 10
dpkg: dependency issues prevent configuration of lkrg-systemd:
lkrg-systemd depends on lkrg-dkms (= 0.9.1-5); but:
Package lkrg-dkms is not configured yet.

dpkg: error when editing package lkrg-systemd (–configure):
dependency problems - remains unconfigured
linux-headers-5.10.0-10-amd64 (5.10.84-1) is set up …
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-10-amd64:
Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make -j1 KERNELRELEASE=5.10.0-10-amd64 -C /lib/modules/5.10.0-10-amd64/build M=/
var/lib/dkms/lkrg/0.9.1/build…
cleaning build area…

p_lkrg.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installing
    • Installing to /lib/modules/5.10.0-10-amd64/updates/dkms/

depmod…

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make -j1 KERNELRELEASE=5.10.0-10-amd64 -C /lib/modules/5.10.0-10-amd64/build M=/
var/lib/dkms/virtualbox/6.1.28/build…
cleaning build area…

vboxdrv.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installing
    • Installing to /lib/modules/5.10.0-10-amd64/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installing
    • Installing to /lib/modules/5.10.0-10-amd64/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installing
    • Installing to /lib/modules/5.10.0-10-amd64/updates/dkms/

depmod…
.
linux-headers-amd64 (5.10.84-1) is being installed …
Errors occurred while editing:
lkrg-dkms
lkrg-systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

can someone please help me with this?

This.

Thank you for your answer dear Patrick!

Unfortunately, the output does not help me. Do you understand perhaps what the problem is, and what this output wants to tell me?

This is shown to me as /var/lib/dkms/lkrg/0.9.1/build/make.log:

> DKMS make.log for lkrg-0.9.1 for kernel 5.15.0-1-amd64 (x86_64)
> Mi 12. Jan 09:27:09 UTC 2022
> make: directory “/usr/src/linux-headers-5.15.0-1-amd64” is entered
> CC [M] /var/lib/dkms/lkrg/0.9.1/build/src/modules/ksyms/p_resolve_ksym.o
> CC [M] /var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.o
> CC [M] /var/lib/dkms/lkrg/0.9.1/build/src/modules/comm_channel/p_comm_channel.o
> CC [M] /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.o
> /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.c: In function ‘p_check_integrity’:
> /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.c:172:4: error: implicit declaration of function ‘get_online_cpus’; did you mean ‘get_online_mems’? [-Werror=implicit-function-declaration]
> 172 | get_online_cpus();
> | ^~~~~~~~~~~~~~~
> | get_online_mems
> /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.c:214:4: error: implicit declaration of function ‘put_online_cpus’; did you mean ‘num_online_cpus’? [-Werror=implicit-function-declaration]
> 214 | put_online_cpus();
> | ^~~~~~~~~~~~~~~
> | num_online_cpus
> cc1: some warnings being treated as errors
> make[1]: *** [/usr/src/linux-headers-5.15.0-1-common/scripts/Makefile.build:282: /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.o] Error 1
> make: *** [/usr/src/linux-headers-5.15.0-1-common/Makefile:1892: /var/lib/dkms/lkrg/0.9.1/build] Error 2
> make: directory “/usr/src/linux-headers-5.15.0-1-amd64” is exited
  • Using Debian stable (currently: bullseye) or Kicksecure stable?
  • Using any newer Linux kernels?

If the answer is “no”, then please “forget” about this package and take LKRG directly from upstream lkrg.org without any reference to this LKRG package from this vendor.

In case of any compilation issues when using LKRG from upstream lkrg.org please contact upstream directly since they are the only ones that can help with this - I cannot.

LKRG 0.9.2 was uploaded to the testers repository just now. Maybe that helps.

If not, please refer to my previous post.