View Issue Details

IDProjectCategoryView StatusLast Update
0004351Kali LinuxKali Package Bugpublic2017-11-16 11:18
ReporterPatchMonkey156 Assigned Torhertzog  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2017.2 
Summary0004351: ZFS-dkms (0.6.5.11) has a version mismatch with dedicated dependency SPL-dkms (0.7.3)
Description

As a result, installing the package zfs-dkms produces a build error:

configure: error:
Please make sure the kmod spl devel package for your distribution
is installed then try again. If that fails you can specify the
*** location of the spl source with the '--with-spl=PATH' option.
Error! Bad return status for module build on kernel: 4.13.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.11/build/make.log for more information.

APT then treats the package zfs-dkms as though it is properly installed, but lacking any content.

Steps To Reproduce

apt install zfs-dkms || apt install zfs-zed

as the version numbers do not match, manually building the zfs-dkms package never takes off. Beginning the process with './configure--with-spl=${kernel}/extra/splat' just yields the same build error.

Additional Information

Long time zfs user. spl and zfs versions must match, or this error happens.
(spl - Solaris Porting Layer, due to be merged into the zfs module by v0.8? until recently, it was due by v,0.7)

/var/lib/dkms/zfs/0.6.5.11/build/make.log only lists a missing makefile.

WORKAROUNDS (exhaustive?):

-Manually downgrade to spl-dkms-0.6.5.11, the matching version, and hold it until zfs-dkms updates. This makes upgrading any software on the distro very tedious.

-Maintain both outside of package management.

-Discontinue use of the Zettabyte File System before updating.

-Build matching zfs-dkms package yourself, or pull it from kali-dev.

Note that failure to employ any of these workarounds on a system with a zfs storage pool will result in failure to access that pool until a workaround is sufficiently implemented.


Further Note that if such a zfs storage pool is the root filesystem, 'apt update && apt upgrade -y' is sufficient to render ALL KERNELS incapable of reading the root filesystem.

RECOMMENDATION:
Mask spl-dkms-0.7.3 until zfs-dkms can match in the kali-rolling repo.

Attached Files
zfs.apt.log (3,850 bytes)   
# apt install spl-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux
  linux-image-4.12.0-kali1-amd64 zfsutils-linux
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  spl-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 392 kB of archives.
After this operation, 3101 kB of additional disk space will be used.
Get:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 spl-dkms all 0.7.3-1 [392 kB]
Fetched 392 kB in 1s (275 kB/s)   
Selecting previously unselected package spl-dkms.
(Reading database ... 370318 files and directories currently installed.)
Preparing to unpack .../spl-dkms_0.7.3-1_all.deb ...
Unpacking spl-dkms (0.7.3-1) ...
Setting up spl-dkms (0.7.3-1) ...
Loading new spl-0.7.3 DKMS files...
Building for 4.13.0-kali1-amd64 4.13.10-lean
Building initial module for 4.13.0-kali1-amd64
Done.

spl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.0-kali1-amd64/extra/spl/spl/

splat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.0-kali1-amd64/extra/splat/splat/

depmod...

DKMS: install completed.
Building initial module for 4.13.10-lean
Done.

spl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.10-lean/extra/spl/spl/

splat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.10-lean/extra/splat/splat/

depmod...

DKMS: install completed.

# apt install zfs-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-4.12.0-kali1-amd64
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  zfs-zed
The following NEW packages will be installed:
  zfs-dkms zfs-zed
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1125 kB of archives.
After this operation, 8395 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/contrib amd64 zfs-dkms all 0.6.5.11-1 [1082 kB]
Get:2 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/contrib amd64 zfs-zed amd64 0.6.5.11-1 [43.3 kB]
Fetched 1125 kB in 1s (695 kB/s) 
Preconfiguring packages ...
Selecting previously unselected package zfs-dkms.
(Reading database ... 370613 files and directories currently installed.)
Preparing to unpack .../zfs-dkms_0.6.5.11-1_all.deb ...
Unpacking zfs-dkms (0.6.5.11-1) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../zfs-zed_0.6.5.11-1_amd64.deb ...
Unpacking zfs-zed (0.6.5.11-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up zfs-dkms (0.6.5.11-1) ...
Loading new zfs-0.6.5.11 DKMS files...
Building for 4.13.0-kali1-amd64 4.13.10-lean
Building initial module for 4.13.0-kali1-amd64
configure: error: 
	*** Please make sure the kmod spl devel package for your distribution
	*** is installed then try again.  If that fails you can specify the
	*** location of the spl source with the '--with-spl=PATH' option.
Error! Bad return status for module build on kernel: 4.13.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.11/build/make.log for more information.
Setting up zfs-zed (0.6.5.11-1) ...
zfs.apt.log (3,850 bytes)   

Activities

PatchMonkey156

PatchMonkey156

2017-11-15 14:54

reporter   ~0007599

apt install spl-dkms=0.6.5.11
->
E: Version '0.6.5.11' for 'spl-dkms' was not found

This error breaks the entire filesystem. Recommend reverting spl-dkms to 0.6.5.11 in the repo until matching zfs-dkms, zfs-zed, zfs-initramfs/zfs-dracut packages catch up to 0.7.3 from 0.6.5.11

rhertzog

rhertzog

2017-11-16 11:14

administrator   ~0007600

The updated zfs-linux is stuck in Debian Unstable due to this bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880902

I will import it from there for now. But you might get upgrade problems.

rhertzog

rhertzog

2017-11-16 11:18

administrator   ~0007601

New version will be in kali-rolling in a few hours.

Issue History

Date Modified Username Field Change
2017-11-15 05:00 PatchMonkey156 New Issue
2017-11-15 05:00 PatchMonkey156 File Added: zfs.apt.log
2017-11-15 14:54 PatchMonkey156 Note Added: 0007599
2017-11-16 11:14 rhertzog Note Added: 0007600
2017-11-16 11:18 rhertzog Assigned To => rhertzog
2017-11-16 11:18 rhertzog Status new => closed
2017-11-16 11:18 rhertzog Resolution open => fixed
2017-11-16 11:18 rhertzog Note Added: 0007601