Similarly fails on fresh buster install from Debian Alpha5 install media.
On Mon, 04 Feb 2019 03:47:36 +0100 Andreas Beckmann <a...@debian.org> wrote:
> Package: zfs-dkms
> Version: 0.7.12-2
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
>
> Hi,
>
> during a test with piuparts I noticed your package fails to upgrade from
> 'stretch'.
> It installed fine in 'stretch', then the upgrade to 'buster' fails.
>
> The problem is the order chosen by apt to process the packages.
>
> * the new spl-dkms gets configured and builds modules for the stretch kernel
> * the new zfs-dkms gets unpacked
> * the buster kernel headers get unpacked
> * the new zfs-dkms gets configured and attempts to build a module for the
> buster kernel
> * this fails due to a missing spl-dkms build for the buster kernel
> * the buster kernel headers get configured
>
> From the attached log (scroll to the bottom...):
>
> [...]
> Setting up spl-dkms (0.7.12-1) ...
> Loading new spl-0.7.12 DKMS files...
> It is likely that 4.13.2 belongs to a chroot's host
> Building for 4.9.0-8-amd64
> Building initial module for 4.9.0-8-amd64
> Done.
> [...]
> DKMS: install completed.
> [...]
> Preparing to unpack .../zfs-dkms_0.7.12-2_all.deb ...
>
> -------- Uninstall Beginning --------
> Module: zfs
> Version: 0.6.5.9
> Kernel: 4.9.0-8-amd64 (x86_64)
> -------------------------------------
>
> Status: Before uninstall, this module version was ACTIVE on this kernel.
> [...]
> DKMS: uninstall completed.
>
> ------------------------------
> Deleting module version: 0.6.5.9
> completely from the DKMS tree.
> ------------------------------
> Done.
> Unpacking zfs-dkms (0.7.12-2) over (0.6.5.9-5) ...
> [...]
> Selecting previously unselected package linux-compiler-gcc-8-x86.
> Preparing to unpack .../4-linux-compiler-gcc-8-x86_4.19.12-1_amd64.deb ...
> Unpacking linux-compiler-gcc-8-x86 (4.19.12-1) ...
> Selecting previously unselected package linux-headers-4.19.0-1-common.
> Preparing to unpack .../5-linux-headers-4.19.0-1-common_4.19.12-1_all.deb
...
> Unpacking linux-headers-4.19.0-1-common (4.19.12-1) ...
> Selecting previously unselected package linux-kbuild-4.19.