Your message dated Fri, 07 Apr 2023 23:12:19 +0200 with message-id <1761614.XzJEqlJf3r@prancing-pony> and subject line Re: Bug#1034035: linux-image-6.1.0-7-amd64: linux image installation fails dkms step if headers are absent has caused the Debian Bug report #1034035, regarding linux-image-6.1.0-7-amd64: linux image installation fails dkms step if headers are absent to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1034035: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034035 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: linux-image-6.1.0-7-amd64: linux image installation fails dkms step if headers are absent
- From: Russ Hamilton <brusshamilton@gmail.com>
- Date: Thu, 06 Apr 2023 18:36:25 -0400
- Message-id: <[🔎] 168082058590.141048.10003450958320443418.reportbug@RussDebianNUC.HamiltonHome>
Package: linux-image-6.1.0-7-amd64 Version: linux-image-6.1.0-7-amd64 Severity: normal X-Debbugs-Cc: brusshamilton@gmail.com Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? I was trying to install the linux-image-6.1.0-7-amd64 package on my bullseye system (needed newer drivers). * What exactly did you do (or not do) that was effective (or ineffective)? I enabled the debian unstable list in my apt sources, but pinned a preference for bullseye packages. Then I ran `sudo apt-get install linux-image-6.1.0-7-amd64` * What was the outcome of this action? The installation appeared to have succeeded (apt returned succeess), but on further examination kernel modules for necessary drivers were missing. A close inspection of the installation log revealed the lines: ``` /etc/kernel/postinst.d/dkms: dkms: running auto installation service for kernel 6.1.0-7-amd64:Error! Your kernel headers for kernel 6.1.0-7-amd64 cannot be found. Please install the linux-headers-6.1.0-7-amd64 package, or use the --kernelsourcedir option to tell DKMS where it's located . ``` * What outcome did you expect instead? I expected either the linux 6.1.0 kernel image to be installed and any dynamic kernel modules built or for the installation to fail due to impossible dependencies. Comments: 1. If the kernel installation requires the headers to function properly, then they should probably be a package dependency. 2. If dkms fails then we should probably consider the linux image installation as having failed and revert to a consistent state instead of continuing. -- System Information: Debian Release: 11.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable'), (100, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-21-amd64 (SMP w/8 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages linux-image-6.1.0-7-amd64 depends on: ii initramfs-tools [linux-initramfs-tool] 0.140 ii kmod 28-1 ii linux-base 4.6 Versions of packages linux-image-6.1.0-7-amd64 recommends: ii apparmor 2.13.6-10 ii firmware-linux-free 20200122-1 Versions of packages linux-image-6.1.0-7-amd64 suggests: pn debian-kernel-handbook <none> ii grub-efi-amd64 2.06-3~deb11u5
--- End Message ---
--- Begin Message ---
- To: 1034035-done@bugs.debian.org
- Subject: Re: Bug#1034035: linux-image-6.1.0-7-amd64: linux image installation fails dkms step if headers are absent
- From: Diederik de Haas <didi.debian@cknow.org>
- Date: Fri, 07 Apr 2023 23:12:19 +0200
- Message-id: <1761614.XzJEqlJf3r@prancing-pony>
- In-reply-to: <[🔎] 168082058590.141048.10003450958320443418.reportbug@RussDebianNUC.HamiltonHome>
- References: <[🔎] 168082058590.141048.10003450958320443418.reportbug@RussDebianNUC.HamiltonHome>
On Friday, 7 April 2023 00:36:25 CEST Russ Hamilton wrote: > Package: linux-image-6.1.0-7-amd64 > > I was trying to install the linux-image-6.1.0-7-amd64 package on my bullseye > system (needed newer drivers). > I enabled the debian unstable list in my apt sources, but pinned a > preference for bullseye packages. https://wiki.debian.org/DontBreakDebian > The installation appeared to have succeeded (apt returned succeess), but on The kernel installation did succeed. > further examination kernel modules for necessary drivers were missing. A > close inspection of the installation log revealed the lines: > ``` > /etc/kernel/postinst.d/dkms: > dkms: running auto installation service for kernel 6.1.0-7-amd64:Error! Your > kernel headers for kernel 6.1.0-7-amd64 cannot be found. > Please install the linux-headers-6.1.0-7-amd64 package, > or use the --kernelsourcedir option to tell DKMS where it's located > . > ``` The kernel doesn't need linux-headers-*, but DKMS does, which is why: Recommends: fakeroot, sudo, linux-headers-686-pae | linux-headers-amd64 | linux-headers-generic | linux-headers > * What outcome did you expect instead? > I expected either the linux 6.1.0 kernel image to be installed and any > dynamic kernel modules built or for the installation to fail due to > impossible dependencies. No. The kernel installation was successful. If you choose to use dkms, then you need to ensure that that succeeds as well. So this is either a DKMS (in general) problem or of the specific dkms package that you chose to use. > Comments: > 1. If the kernel installation requires the headers to function properly, > then they should probably be a package dependency. As said above, the kernel does need the headers installed. > 2. If dkms fails then we should probably consider the linux image > installation as having failed and revert to a consistent state instead of > continuing. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029063#36 Not a kernel bug, thus closing.Attachment: signature.asc
Description: This is a digitally signed message part.
--- End Message ---