Debian -> Kicksecure morphing fails for Qubes OS

Hi. I faced the issue during the procedure of morphing Debian 12 into Kicksecure 17. I was following all the steps from the official documentation (Install Kicksecure inside Debian).

Template information:

lsb_release -a

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Command that produces the error:
sudo apt install --no-install-recommends kicksecure-cli-host

Logs state:

Errors were encountered while processing:

The error:

cat /var/lib/dkms/tirdad/0.1/build/make.log

DKMS make.log for tirdad-0.1 for kernel 6.6.31-1.qubes.fc37.x86_64 (x86_64)
KERNELDIR: /lib/modules/6.6.31-1.qubes.fc37.x86_64/build
cd module; make -C /lib/modules/6.6.31-1.qubes.fc37.x86_64/build M=/var/lib/dkms/tirdad/0.1/build/module
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/lib/modules/6.6.31-1.qubes.fc37.x86_64/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (GCC) 12.3.1 20230508 (Red Hat 12.3.1-1)
  You are using:           gcc (Debian 12.2.0-14) 12.2.0
  CC [M]  /var/lib/dkms/tirdad/0.1/build/module/tirdad.o
  MODPOST /var/lib/dkms/tirdad/0.1/build/module/Module.symvers
ERROR: modpost: "__pte_offset_map" [/var/lib/dkms/tirdad/0.1/build/module/tirdad.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:145: /var/lib/dkms/tirdad/0.1/build/module/Module.symvers] Error 1
make[2]: *** [/usr/lib/modules/6.6.31-1.qubes.fc37.x86_64/build/Makefile:1865: modpost] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.6.31-1.qubes.fc37.x86_64/build'
make: *** [Makefile:12: all] Error 2

Qubes OS Info:

cat /etc/qubes-release
Qubes release 4.2.1 (R4.2)

I spent a bunch of hours trying to find any information related to this issue, but no luck so far. Any help would be very appreciated!

Wrong meta package.

Quote Kicksecure for Qubes

1. Follow the instructions Install Kicksecure inside Debian, choose meta package kicksecure-qubes-cli or kicksecure-qubes-gui.

1 Like

Oh… Such a newbie mistake. :man_facepalming:

Thanks a lot, kicksecure-qubes-cli worked like a charm.