[Pkg-zfsonlinux-devel] Bug#1024326: Bug#1024326: bullseye to bookworm upgrade failure: Could not locate dkms.conf file

M. Zhou lumin at debian.org
Sun Dec 4 01:56:27 GMT 2022


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



More information about the Pkg-zfsonlinux-devel mailing list