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 Kernel Packages, which is subscribed to zfs-linux in 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 Status in zfs-linux package in Ubuntu: New Bug description: Using kernel 6.7.6-surface-1 on a Surface Pro 7. ProblemType: Package DistroRelease: Ubuntu 22.04 Package: zfs-dkms 2.1.5-1ubuntu6~22.04.3 Uname: Linux 6.7.6-surface-1 x86_64 ApportVersion: 2.20.11-0ubuntu82.5 AptOrdering: zfs-dkms:amd64: Install NULL: ConfigurePending Architecture: amd64 CasperMD5CheckResult: unknown Date: Thu Mar 14 11:16:27 2024 ErrorMessage: »installiertes zfs-dkms-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 10 zurück InstallationDate: Installed on 2021-01-20 (1149 days ago) InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) PackageArchitecture: all Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04 PythonDetails: /usr/bin/python3.10, Python 3.10.12, python-is-python3, 3.9.2-2 RelatedPackageVersions: dpkg 1.21.1ubuntu2.3 apt 2.4.11 SourcePackage: zfs-linux 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 UpgradeStatus: Upgraded to jammy on 2023-03-30 (350 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2057913/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp