#1110848 zfs-dkms: Upgrade/installation of a zfs-dkms fails: dkms.conf: Error! Unsupported AUTOINSTALL value 'Y'

#1110848#5
Date:
2025-08-11 12:37:42 UTC
From:
To:
Dear Maintainer,

upgrading packages using apt from bookworm to trixie caused failure of a zfs-dkms installation.

Errors were encountered while processing:
 zfs-dkms
 zfs-zed
Error: Sub-process /usr/bin/dpkg returned an error code (1)

The Bookworm system has not been reboot yet (to turn into Trixie), so I am under 6.1.0-37-amd64.

$ sudo apt reinstall zfsutils-linux
...
Installing /lib/modules/6.1.0-37-amd64/updates/dkms/zfs.ko
Installing /lib/modules/6.1.0-37-amd64/updates/dkms/spl.ko
Running depmod.... done.
dkms.conf: Error! Unsupported AUTOINSTALL value 'Y'

Error! Bad conf file.
File:  does not represent a valid dkms.conf file.

The error is false, because the file /usr/src/zfs-2.3.2/dkms.conf contains valid line:
AUTOINSTALL="yes"


$ find /lib/modules/$(uname -r)/ -type f -name '*.ko'|grep zfs

/lib/modules/6.1.0-37-amd64/updates/dkms/zfs.ko

ls -A1 /boot/vmlinuz*

/boot/vmlinuz-5.10.0-32-amd64

/boot/vmlinuz-6.12.38+deb13-amd64

$ dkms status

zfs/2.3.2, 6.1.0-37-amd64, x86_64: installed

Please kindly mention how to workaround this so the ZFS kernel module is installed.

More details: https://forums.debian.net/viewtopic.php?p=826481

#1110848#12
Date:
2025-11-21 21:37:49 UTC
From:
To:
Control: tag -1 moreinfo

Do you have any (locally created) config file in /etc/dkms setting the
wrong value?

grep -r AUTOINSTALL= /etc/dkms/

Is there any stale file in /var/lib/dkms setting the wrong value?

grep -r AUTOINSTALL= /var/lib/dkms/

Andreas