zfs-dkms 2.1.5-1ubuntu6~22.04.1: zfs kernel module failed to build

Bug #2030100 reported by Mike Ferreira
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After this mornings update to Linux Kernel 6.2

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: zfs-dkms 2.1.5-1ubuntu6~22.04.1
ProcVersionSignature: Ubuntu 6.2.0-26.26~22.04.1-generic 6.2.13
Uname: Linux 6.2.0-26-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
DKMSBuildLog:
 DKMS make.log for zfs-2.1.5 for kernel 6.2.0-26-generic (x86_64)
 Fri Aug 4 10:17:48 AM PDT 2023
 make: *** No targets specified and no makefile found. Stop.
DKMSKernelVersion: 6.2.0-26-generic
Date: Fri Aug 4 10:17:49 2023
InstallationDate: Installed on 2022-11-19 (258 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: all
PackageVersion: 2.1.5-1ubuntu6~22.04.1
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.9
SourcePackage: zfs-linux
Title: zfs-dkms 2.1.5-1ubuntu6~22.04.1: zfs kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mike Ferreira (mafoelffen) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zfs-linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Phil Marsh (marsh-pf) wrote :
Download full text (9.5 KiB)

I have a similar or the same problem:
OS Ubuntu 22.04]
# uname -a
Linux thor 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libvlc5 libimage-magick-perl exo-utils vlc-data libvlccore9 imagemagick
  libslurm37 libjs-jquery-ui libopenexr25 libmagick++-6.q16-8 python3-scipy
  libpostproc55 libmagickcore-6.q16-6-extra libswscale-dev php-twig
  libavcodec58 libimage-magick-q16-perl libmagickwand-6.q16-6 libavutil56
  imagemagick-6.q16 libswscale5 libmagickcore-6.q16-6 libexo-2-0 libavutil-dev
  libgsl27 libswresample3 imagemagick-6-common vlc-plugin-video-output
  libavformat58 libpmix-dev libgslcblas0 libavformat-dev libavcodec-dev
  libpmix2 libvlc-bin libswresample-dev vlc-plugin-base libexo-common
  libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  apparmor evince evince-common gir1.2-evince-3.0 libapparmor1 libapparmor1:i386 libevdocument3-4 libevview3-3
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up zfs-dkms (2.1.5-1ubuntu6~22.04.2) ...
Removing old zfs-2.1.5 DKMS files...
Deleting module zfs-2.1.5 completely from the DKMS tree.
Loading new zfs-2.1.5 DKMS files...
Building for 6.2.0-37-generic
Building initial module for 6.2.0-37-generic
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use s
etuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use s
etuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<stdin>:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use se
tuptools or check PEP 632 for potential alternatives
<stdin>:4: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<stdin>:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use se
tuptools or check PEP 632 for potential alternatives
<stdin>:3: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<stdin>:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use se
tuptools or check PEP 632 for potential alternatives
<stdin>:2: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use s
etuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutil...

Read more...

Revision history for this message
cement_head (andorjkiss) wrote :

In the meantime, what's the solution?

Revision history for this message
Brad Stancel (brad-stancel) wrote :

@cement_head - This is what I did just yesterday to solve the issue. I am using kernel Linux 6.2.0-37-generic x86_64 on Ubuntu 22.04. Mind you, my ZFS pool is *not* on the same disk that is running my OS. That disk runs ext4 and I have six disks in a raidz2-0 array that I use for storage.

If you are running a kernel put out by one of the Ubuntu apt repo's like I am, then you can do the following:

- Write down the names of each of your ZFS pools (for instance, I have one called "z-storage" in a raidz2-0 array)
- Uninstall the zfs-dkms package from the Ubuntu repos since it only handles kernels up to 5.19 (sudo apt remove zfs-dkms)
- Now re-import your ZFS pool (sudo zpool import <name-of-your-zfs-pool>) (i.e. for me - sudo zpool import z-storage)
- Reboot
- Once your OS comes back up, check the status of any ZFS pools (sudo zpool status -v), or just list them if you prefer (sudo zpool list)
- If your ZFS pool does not show up, make sure to check the settings in file "/etc/default/zfs" to make sure that ZFS is loading the key, mounting and unmounting, sharing and unsharing. If not then adjust those settings, reimport the ZFS pool and reboot like above and you should be good to go.

Hope that helps and works for you and anyone else that also has this issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.