The error occours because you are trying to build a dkms module for zfs version 2.1.5 which only supports kernels up to version 5.18.x. So there are some incompatabilities with your kernel because it's much newer causing the build to fail.
The only zfs version that supports kernel 6.7.x is zfs version 2.2.3, however there are no Ubuntu packages available so it has to be build from source. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057913 Title: package zfs-dkms 2.1.5-1ubuntu6~22.04.3 failed to install/upgrade: »installiertes zfs-dkms-Skript des Paketes post- installation«-Unterprozess gab den Fehlerwert 10 zurück To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2057913/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs