Linux Kernel Update 6.8.x Error

I have never had a kernel update fail on any of my Linux machines before. And the resulting dialogue about the error is not the best of explanations. But it appears to be trying to install updated verions and is not successful.

AND this is my mom’s computer I set up for her last month, at her home, that I am controlling remotely. So do not want to do anything to make it not boot.

E: linux-headers-6.8.0-47-generic: installed linux-headers-6.8.0-47-generic package post-installation script subprocess returned error exit status 11
E: linux-headers-generic: dependency problems - leaving unconfigured
E: linux-generic: dependency problems - leaving unconfigured
E: linux-image-6.8.0-47-generic: installed linux-image-6.8.0-47-generic package post-installation script subprocess returned error exit status 11

I would like to just autoremove to stop the errors for every update attempt, but not sure if I should just let it be. Maybe it will be fixed down the road?

Here is the current sys info:

System:
  Kernel: 6.8.0-44-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0 clocksource: tsc
  Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt: 7 dm: LightDM v: 1.30.0
    Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble
Machine:
  Type: Mini-pc Mobo: AZW model: SER v: V2.0 serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends LLC. v: SER5H507 date: 07/28/2023
CPU:
  Info: 8-core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP smt: enabled
    arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
  Speed (MHz): avg: 1464 high: 4341 min/max: 400/4372 cores: 1: 3219 2: 400 3: 1381 4: 2025
    5: 400 6: 2702 7: 4341 8: 1517 9: 1397 10: 1399 11: 400 12: 1519 13: 400 14: 400 15: 1539 16: 400
    bogomips: 57491
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Lucienne driver: amdgpu v: kernel arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports:
    active: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 04:00.0 chip-ID: 1002:164c class-ID: 0300
    temp: 47.0 C
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x2880 s-dpi: 144 s-size: 903x508mm (35.55x20.00")
    s-diag: 1036mm (40.79")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Toshiba TOSHIBA-TV serial: <filter> res: 5120x2880
    hz: 60 dpi: 96 size: 1360x760mm (53.54x29.92") diag: 1836mm (72.3") modes: max: 3840x2160
    min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    surfaceless: drv: radeonsi x11: drv: radeonsi inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.9-0ubuntu0.2 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi renoir LLVM 17.0.6 DRM 3.57
    6.8.0-44-generic) device-ID: 1002:164c
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_rn_pci_acp3x v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.8.0-44-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IF-ID-1: pan1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    bus-ID: 3-3:3 chip-ID: 8087:0029 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block:
    hardware: no software: yes address: <filter>
Drives:
  Local Storage: total: 2.32 TiB used: 15.87 GiB (0.7%)
  ID-1: /dev/nvme0n1 vendor: Crucial model: CT500P3PSSD8 size: 465.76 GiB speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: P9CR40A temp: 45.9 C scheme: GPT
  ID-2: /dev/sda vendor: Silicon Power model: SPCC Solid State Disk size: 1.86 TiB
    speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 915a scheme: GPT
Partition:
  ID-1: / size: 230.06 GiB used: 15.87 GiB (6.9%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 1.46 GiB used: 6.3 MiB (0.4%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: Logitech M185 compact wireless mouse type: mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s lanes: 1 power: 50mA
    chip-ID: 046d:c542 class-ID: 0301
  Device-2: 1-2:3 info: EzKEY USB to PS2 Adaptor v1.09 type: keyboard,mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s lanes: 1 power: 100mA
    chip-ID: 0518:0001 class-ID: 0301
  Device-3: 1-3:4 info: Holtek Gaming keyboard type: keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s lanes: 1 power: 100mA chip-ID: 04d9:a01b class-ID: 0300
  Hub-2: 2-0:1 info: super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s lanes: 1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: SiGma Micro HID controller type: mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 1.1 speed: 1.5 Mb/s lanes: 1 power: 98mA chip-ID: 1c4f:0003 class-ID: 0301
  Device-2: 3-3:3 info: Intel AX200 Bluetooth type: bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s lanes: 1 power: 100mA chip-ID: 8087:0029 class-ID: e001
  Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s lanes: 1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 53.2 C mobo: N/A gpu: amdgpu temp: 46.0 C
  Fan Speeds (rpm): N/A
Repos:
  Packages: 2077 pm: dpkg pkgs: 2063 pm: flatpak pkgs: 14
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com wilma main upstream import backport
    2: deb http: //mirrors.advancedhosters.com/ubuntu noble main restricted universe multiverse
    3: deb http: //mirrors.advancedhosters.com/ubuntu noble-updates main restricted universe multiverse
    4: deb http: //mirrors.advancedhosters.com/ubuntu noble-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/softmaker.list
    1: deb [signed-by=/etc/apt/keyrings/softmaker.gpg] https: //shop.softmaker.com/repo/apt stable non-free
Info:
  Memory: total: 12 GiB note: est. available: 12.57 GiB used: 4.74 GiB (37.7%)
  Processes: 401 Power: uptime: 1d 6h 2m states: freeze,mem,disk suspend: deep wakeups: 0
    hibernate: platform Init: systemd v: 255 target: graphical (5) default: graphical
  Compilers: gcc: 13.2.0 Client: Cinnamon v: 6.2.9 inxi: 3.3.34

Attempt to autoremove gives the following removals:

myviolinsings@Beelink-LM:~$ sudo apt autoremove
[sudo] password for myviolinsings:          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-6.8.0-45 linux-headers-6.8.0-45-generic linux-headers-6.8.0-47
  linux-headers-6.8.0-47-generic linux-image-6.8.0-45-generic
  linux-image-6.8.0-47-generic linux-modules-6.8.0-45-generic
  linux-modules-6.8.0-47-generic linux-modules-extra-6.8.0-45-generic
  linux-modules-extra-6.8.0-47-generic linux-tools-6.8.0-45
  linux-tools-6.8.0-45-generic linux-tools-6.8.0-47
  linux-tools-6.8.0-47-generic
0 upgraded, 0 newly installed, 14 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 598 MB disk space will be freed.

Is this the best way to handle these errors?

Thanks,
Sheila

1 Like

You still have the current kernel which boots ok if you let it auto remove the newer kernel which didn’t install right. So I would say it’s ok to let it autoremove the broken kernel packages but better to have a backup ready :thinking:

But please reboot first and check you can login

3 Likes

Sorry I have been working on other items but just now got on my mom’s computer to run the autoremove (yes I have logged in several times after reboot):

sudo apt autoremove
[sudo] password for myviolinsings:          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-6.8.0-45 linux-headers-6.8.0-45-generic linux-headers-6.8.0-47
  linux-headers-6.8.0-47-generic linux-image-6.8.0-45-generic
  linux-image-6.8.0-47-generic linux-modules-6.8.0-45-generic
  linux-modules-6.8.0-47-generic linux-modules-extra-6.8.0-45-generic
  linux-modules-extra-6.8.0-47-generic linux-tools-6.8.0-45
  linux-tools-6.8.0-45-generic linux-tools-6.8.0-47
  linux-tools-6.8.0-47-generic
0 upgraded, 0 newly installed, 14 to remove and 3 not upgraded.
6 not fully installed or removed.
After this operation, 598 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 609947 files and directories currently installed.)
Removing linux-headers-6.8.0-47-generic (6.8.0-47.47) ...
Removing linux-image-6.8.0-47-generic (6.8.0-47.47) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.8.0-45-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.8.0-45-generic
/var/lib/dpkg/info/linux-image-6.8.0-47-generic.postrm ... removing pending trig
ger
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.8.0-47-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-48-generic
Found linux image: /boot/vmlinuz-6.8.0-45-generic
Found initrd image: /boot/initrd.img-6.8.0-45-generic
Found linux image: /boot/vmlinuz-6.8.0-44-generic
Found initrd image: /boot/initrd.img-6.8.0-44-generic
Found linux image: /boot/vmlinuz-6.8.0-38-generic
Found initrd image: /boot/initrd.img-6.8.0-38-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot 
entries.
Found Manjaro Linux (24.0.8) on /dev/nvme0n1p2
Adding boot menu entry for UEFI Firmware Settings ...
done
Removing linux-headers-6.8.0-45-generic (6.8.0-45.45) ...
Removing linux-headers-6.8.0-45 (6.8.0-45.45) ...
Removing linux-headers-6.8.0-47 (6.8.0-47.47) ...
Removing linux-image-6.8.0-45-generic (6.8.0-45.45) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.8.0-44-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.8.0-44-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.8.0-45-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-48-generic
Found linux image: /boot/vmlinuz-6.8.0-44-generic
Found initrd image: /boot/initrd.img-6.8.0-44-generic
Found linux image: /boot/vmlinuz-6.8.0-38-generic
Found initrd image: /boot/initrd.img-6.8.0-38-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot 
entries.
Found Manjaro Linux (24.0.8) on /dev/nvme0n1p2
Adding boot menu entry for UEFI Firmware Settings ...
done
Removing linux-modules-extra-6.8.0-45-generic (6.8.0-45.45) ...
Removing linux-modules-6.8.0-45-generic (6.8.0-45.45) ...
Removing linux-modules-extra-6.8.0-47-generic (6.8.0-47.47) ...
Removing linux-modules-6.8.0-47-generic (6.8.0-47.47) ...
Removing linux-tools-6.8.0-45-generic (6.8.0-45.45) ...
Removing linux-tools-6.8.0-45 (6.8.0-45.45) ...
Removing linux-tools-6.8.0-47-generic (6.8.0-47.47) ...
Removing linux-tools-6.8.0-47 (6.8.0-47.47) ...
Setting up linux-image-6.8.0-48-generic (6.8.0-48.48) ...
I: /boot/initrd.img is now a symlink to initrd.img-6.8.0-48-generic
Setting up linux-headers-6.8.0-48-generic (6.8.0-48.48) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-48-generic
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/btusb/4.1/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/btusb/4.1/source/dkms.conf)

Building module:
Cleaning build area...
'make' all KVER=6.8.0-48-generic...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.0-48-generic (x86_64)
Consult /var/lib/dkms/btusb/4.1/build/make.log for more information.
dkms autoinstall on 6.8.0-48-generic/x86_64 failed for btusb(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-48-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.8.0-48-generic (--configure):
 installed linux-headers-6.8.0-48-generic package post-installation script subpr
ocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.8.0-48-generic; however:
  Package linux-headers-6.8.0-48-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 6.8.0-48.48); however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-6.8.0-48-generic (6.8.0-48.48) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-48-generic
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/btusb/4.1/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/btusb/4.1/source/dkms.conf)

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

I looked at the log as instructed:

Error! Bad return status for module build on kernel: 6.8.0-48-generic (x86_64)
Consult /var/lib/dkms/btusb/4.1/build/make.log for more information.

Output:

DKMS make.log for btusb-4.1 for kernel 6.8.0-48-generic (x86_64)
Wed Nov  6 01:33:16 PM CST 2024
make -C /lib/modules/6.8.0-48-generic/build M=/var/lib/dkms/btusb/4.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-48-generic'
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.2.0-23ubuntu4) 13.2.0
  You are using:           gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
  CC [M]  /var/lib/dkms/btusb/4.1/build/btusb.o
/var/lib/dkms/btusb/4.1/build/btusb.c: In function ‘btusb_probe’:
/var/lib/dkms/btusb/4.1/build/btusb.c:3929:21: error: ‘struct hci_dev’ has no member named ‘dev_type’
 3929 |                 hdev->dev_type = HCI_AMP;
      |                     ^~
/var/lib/dkms/btusb/4.1/build/btusb.c:3929:34: error: ‘HCI_AMP’ undeclared (first use in this function); did you mean ‘HCI_UP’?
 3929 |                 hdev->dev_type = HCI_AMP;
      |                                  ^~~~~~~
      |                                  HCI_UP
/var/lib/dkms/btusb/4.1/build/btusb.c:3929:34: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/btusb/4.1/build/btusb.c:3931:21: error: ‘struct hci_dev’ has no member named ‘dev_type’
 3931 |                 hdev->dev_type = HCI_PRIMARY;
      |                     ^~
/var/lib/dkms/btusb/4.1/build/btusb.c:3931:34: error: ‘HCI_PRIMARY’ undeclared (first use in this function); did you mean ‘HCI_PRIVACY’?
 3931 |                 hdev->dev_type = HCI_PRIMARY;
      |                                  ^~~~~~~~~~~
      |                                  HCI_PRIVACY
/var/lib/dkms/btusb/4.1/build/btusb.c:3951:13: error: ‘struct hci_dev’ has no member named ‘prevent_wake’
 3951 |         hdev->prevent_wake = btusb_prevent_wake;
      |             ^~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/btusb/4.1/build/btusb.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-48-generic/Makefile:1925: /var/lib/dkms/btusb/4.1/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-48-generic'
make: *** [Makefile:7: all] Error 2

Not really sure what all of those HCI errors mean, but ‘btusb’ is that related to her BT devices via USB?

Thanks,
Sheila

1 Like

dkms - dynamic kernel management system
It is trying to build a kernel module
I think the module is called btusb
I think it is something to do with bluetooth
modinfo btusb might tell you

For some reason I dont understand, kernel modules are built from source code… they dont come as binaries.
There are errors in the C code.
Things are undeclared… there may be missing .h files
I dont think you will debug it. Avoid it with some workaround

2 Likes