Bug#1024326: bullseye to bookworm upgrade failure: Could not locate dkms.conf file
Followup-For: Bug #1024326 Control: tag -1 unreproducible This is probably some rare corruption of the dkms data tree and to be blamed on dkms (not neccessarily for creating it, but by not handling some error conditions). Feel free to reassign. There have been some improvements to make dkms more resilient against such issues (if we somehow could reprocude getting in such a state). Andreas
Bug#1024326: [Pkg-zfsonlinux-devel] Bug#1024326: bullseye to bookworm upgrade failure: Could not locate dkms.conf file
Control: severity -1 important Control: tags -1 +moreinfo I'm still not sure about why the upgrade failed, and I could not reproduce the problem in a clean chroot using the following script: https://salsa.debian.org/zfsonlinux-team/zfs/-/blob/master/debian/tests/sbuild-shell-bullseye-to-bookworm.sh So I'm downgrading the bug's severity to unblock migration. On Thu, 2022-11-17 at 10:31 -0500, Antoine Beaupre wrote: > Package: zfs-dkms > Version: 2.1.6-3 > Severity: serious > > I have tried to upgrade to bookworm today and kernel builds fail on > zfs-dkms. It fails with: > > dkms: running auto installation service for kernel 6.0.0-4- > amd64:Error! Could not locate dkms.conf file. > File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist. > > It's odd because zfs 2.0.3 is gone now... The package has been > upgraded at this point... Yet the /var/lib/dkms/zfs/2.0.3 directory > was still around. Removing it fixes the problem: > > rm -rf /var/lib/dkms/zfs/2.0.3 > > Note that I am doing batch upgrades with a special procedure, with > this command: > > env DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none > APT_LISTBUGS_FRONTEND=none UCF_FORCE_CONFFOLD=y \ > apt full-upgrade -y -o Dpkg::Options::='--force-confdef' -o > Dpkg::Options::='--force-confold' && > > ... which might have cause the old directory to not be removed. > > See this for my upgrade procedure: > > https://anarc.at/services/upgrades/bookworm/ > > More of the error log: > > Setting up linux-image-6.0.0-4-amd64 (6.0.8-1) ... > /etc/kernel/postinst.d/dkms: > dkms: running auto installation service for kernel 6.0.0-4- > amd64:Error! Could not locate dkms.conf file. > File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist. > failed! > run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 > dpkg: error processing package linux-image-6.0.0-4-amd64 (-- > configure): > installed linux-image-6.0.0-4-amd64 package post-installation script > subprocess returned error exit status 1 > dpkg: dependency problems prevent configuration of linux-image-amd64: > linux-image-amd64 depends on linux-image-6.0.0-4-amd64 (= 6.0.8-1); > however: > Package linux-image-6.0.0-4-amd64 is not configured yet. > > dpkg: error processing package linux-image-amd64 (--configure): > dependency problems - leaving unconfigured > Setting up linux-headers-6.0.0-4-amd64 (6.0.8-1) ... > /etc/kernel/header_postinst.d/dkms: > dkms: running auto installation service for kernel 6.0.0-4- > amd64:Error! Could not locate dkms.conf file. > File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist. > failed! > run-parts: /etc/kernel/header_postinst.d/dkms exited with return code > 4 > Failed to process /etc/kernel/header_postinst.d at > /var/lib/dpkg/info/linux-headers-6.0.0-4-amd64.postinst line 11. > dpkg: error processing package linux-headers-6.0.0-4-amd64 (-- > configure): > installed linux-headers-6.0.0-4-amd64 package post-installation > script subprocess returned error exit status 1 > dpkg: dependency problems prevent configuration of linux-headers- > amd64: > linux-headers-amd64 depends on linux-headers-6.0.0-4-amd64 (= 6.0.8- > 1); however: > Package linux-headers-6.0.0-4-amd64 is not configured yet. > > dpkg: error processing package linux-headers-amd64 (--configure): > dependency problems - leaving unconfigured > Errors were encountered while processing: > linux-image-6.0.0-4-amd64 > linux-image-amd64 > linux-headers-6.0.0-4-amd64 > linux-headers-amd64
Bug#1024326: bullseye to bookworm upgrade failure: Could not locate dkms.conf file
Package: zfs-dkms Version: 2.1.6-3 Severity: serious I have tried to upgrade to bookworm today and kernel builds fail on zfs-dkms. It fails with: dkms: running auto installation service for kernel 6.0.0-4-amd64:Error! Could not locate dkms.conf file. File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist. It's odd because zfs 2.0.3 is gone now... The package has been upgraded at this point... Yet the /var/lib/dkms/zfs/2.0.3 directory was still around. Removing it fixes the problem: rm -rf /var/lib/dkms/zfs/2.0.3 Note that I am doing batch upgrades with a special procedure, with this command: env DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none UCF_FORCE_CONFFOLD=y \ apt full-upgrade -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' && ... which might have cause the old directory to not be removed. See this for my upgrade procedure: https://anarc.at/services/upgrades/bookworm/ More of the error log: Setting up linux-image-6.0.0-4-amd64 (6.0.8-1) ... /etc/kernel/postinst.d/dkms: dkms: running auto installation service for kernel 6.0.0-4-amd64:Error! Could not locate dkms.conf file. File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist. failed! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-6.0.0-4-amd64 (--configure): installed linux-image-6.0.0-4-amd64 package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-6.0.0-4-amd64 (= 6.0.8-1); however: Package linux-image-6.0.0-4-amd64 is not configured yet. dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured Setting up linux-headers-6.0.0-4-amd64 (6.0.8-1) ... /etc/kernel/header_postinst.d/dkms: dkms: running auto installation service for kernel 6.0.0-4-amd64:Error! Could not locate dkms.conf file. File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist. failed! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.0.0-4-amd64.postinst line 11. dpkg: error processing package linux-headers-6.0.0-4-amd64 (--configure): installed linux-headers-6.0.0-4-amd64 package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-amd64: linux-headers-amd64 depends on linux-headers-6.0.0-4-amd64 (= 6.0.8-1); however: Package linux-headers-6.0.0-4-amd64 is not configured yet. dpkg: error processing package linux-headers-amd64 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-image-6.0.0-4-amd64 linux-image-amd64 linux-headers-6.0.0-4-amd64 linux-headers-amd64 -- System Information: Debian Release: bookworm/sid APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.0.0-4-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages zfs-dkms depends on: ii debconf [debconf-2.0] 1.5.79 pn dkms ii file 1:5.41-4 ii libc6-dev [libc-dev] 2.36-4 ii libpython3-stdlib 3.10.6-1 ii lsb-release12.0-1 ii perl 5.36.0-4 ii python3-distutils 3.10.8-1 Versions of packages zfs-dkms recommends: ii linux-libc-dev 6.0.8-1 pn zfs-zed pn zfsutils-linux Versions of packages zfs-dkms suggests: ii debhelper 13.10.1