*** This bug is a duplicate of bug 2161037 ***
    https://bugs.launchpad.net/bugs/2161037

Public bug reported:

Automatically updating from kernel 6.17.0-20-generic to 7.0.0-28-generic
failed, led to kernel panic, and now blocks purging the faulty kernel or
installing/removing anything else.

E.g.:
sudo apt -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 7.0.0-28-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=7.0.0-28-generic 
KERNEL_DIR=/lib/modules/7.0.0-28-generic/build all...(bad exit status: 2)
Error! Bad return status for module build on kernel: 7.0.0-28-generic (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
dkms autoinstall on 7.0.0-28-generic/x86_64 failed for v4l2loopback(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 7.0.0-28-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-7.0.0-28-generic (--configure):
 installed linux-headers-7.0.0-28-generic package post-installation script 
subprocess returned error exit status 11
Errors were encountered while processing:
 linux-headers-7.0.0-28-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


make file log:
cat /var/lib/dkms/v4l2loopback/0.12.7/build/make.log
DKMS make.log for v4l2loopback-0.12.7 for kernel 7.0.0-28-generic (x86_64)
Fri Jul 17 07:01:18 PM BST 2026
Building v4l2-loopback driver...
make -C /lib/modules/7.0.0-28-generic/build 
M=/var/lib/dkms/v4l2loopback/0.12.7/build modules
make[1]: Entering directory '/usr/src/linux-headers-7.0.0-28-generic'
make[2]: Entering directory '/var/lib/dkms/v4l2loopback/0.12.7/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 
13.3.0-6ubuntu2~24.04.1) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
  CC [M]  v4l2loopback.o
v4l2loopback.c: In function ‘v4l2_loopback_open’:
v4l2loopback.c:2089:9: error: too few arguments to function ‘v4l2_fh_add’
 2089 |         v4l2_fh_add(&opener->fh);
      |         ^~~~~~~~~~~
In file included from 
/usr/src/linux-headers-7.0.0-28-generic/include/media/v4l2-subdev.h:17,
                 from 
/usr/src/linux-headers-7.0.0-28-generic/include/media/v4l2-device.h:13,
                 from v4l2loopback.c:31:
/usr/src/linux-headers-7.0.0-28-generic/include/media/v4l2-fh.h:97:6: note: 
declared here
   97 | void v4l2_fh_add(struct v4l2_fh *fh, struct file *filp);
      |      ^~~~~~~~~~~
v4l2loopback.c: In function ‘v4l2_loopback_close’:
v4l2loopback.c:2117:9: error: too few arguments to function ‘v4l2_fh_del’
 2117 |         v4l2_fh_del(&opener->fh);
      |         ^~~~~~~~~~~
/usr/src/linux-headers-7.0.0-28-generic/include/media/v4l2-fh.h:125:6: note: 
declared here
  125 | void v4l2_fh_del(struct v4l2_fh *fh, struct file *filp);
      |      ^~~~~~~~~~~
make[4]: *** 
[/usr/src/linux-headers-7.0.0-28-generic/scripts/Makefile.build:289: 
v4l2loopback.o] Error 1
make[3]: *** [/usr/src/linux-headers-7.0.0-28-generic/Makefile:2115: .] Error 2
make[2]: *** [/usr/src/linux-headers-7.0.0-28-generic/Makefile:248: __sub-make] 
Error 2
make[2]: Leaving directory '/var/lib/dkms/v4l2loopback/0.12.7/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-7.0.0-28-generic'
make: *** [Makefile:43: v4l2loopback.ko] Error 2

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: v4l2loopback-dkms 0.12.7-2ubuntu5.1
ProcVersionSignature: Ubuntu 6.17.0-20.20~24.04.1-generic 6.17.13
Uname: Linux 6.17.0-20-generic x86_64
ApportVersion: 2.28.2-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
DKMSKernelVersion: 7.0.0-28-generic
Date: Fri Jul 17 19:01:20 2026
DuplicateSignature: 
dkms:v4l2loopback-dkms:0.12.7-2ubuntu5.1:v4l2loopback.c:2089:9: error: too few 
arguments to function ‘v4l2_fh_add’
InstallationDate: Installed on 2026-02-28 (139 days ago)
InstallationMedia: Ubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210)
PackageArchitecture: all
PackageVersion: 0.12.7-2ubuntu5.1
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 
3.12.3-0ubuntu2.1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.22.6ubuntu6.6
 apt  2.8.3
SourcePackage: v4l2loopback
Title: v4l2loopback-dkms 0.12.7-2ubuntu5.1: v4l2loopback kernel module failed 
to build
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: v4l2loopback (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package need-duplicate-check noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161123

Title:
  7.0.0-28-generic kernel build failed - kernel panic - blocks all other
  installations and purge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/v4l2loopback/+bug/2161123/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to