Page 1 of 1

Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 7:13 am
by Magister
Using MXPI, I select kernel 6.12.32, but it cannot install:

Code: Select all

Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Hit:4 https://packages.microsoft.com/repos/code stable InRelease
Hit:5 https://mxrepo.com/mx/repo bookworm InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
rtl8812au-dkms is already the newest version (5.13.6+git20250221-0~mx23+1).
rtl8821ce-dkms is already the newest version (5.5.2.1+git20250208-0~mx23+1).
rtl8821cu-dkms is already the newest version (5.12.0+git20250219-1~mx23+1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-6.12.32-amd64 : Depends: linux-base (>= 4.12~) but 4.9 is to be installed
 linux-image-6.12.32-amd64-unsigned : PreDepends: linux-base (>= 4.12~) but 4.9 is to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

System:
  Kernel: 6.12.29-amd64 [6.12.29-1~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 clocksource: tsc
    avail: hpet,acpi_pm parameters: BOOT_IMAGE=/vmlinuz-6.12.29-amd64 root=UUID=<filter> ro
    rootflags=subvol=@ quiet splash clocksource=tsc tsc=reliable
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 wm: xfwm4 v: 4.20.0 with: xfce4-panel
    tools: xscreensaver,xscreensaver-systemd vt: 7 dm: LightDM v: 1.32.0 Distro: MX-23.6_ahs_x64
    Libretto July 31 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Mini-pc System: AZW product: SER v: N/A serial: <superuser required> Chassis: type: 35
    serial: <superuser required>
  Mobo: AZW model: SER v: V01 serial: <superuser required> part-nu: SER
    uuid: <superuser required> UEFI: American Megatrends LLC. v: 1.16_P4C7M43_Blink date: 01/07/2023
Battery:
  Device-1: hid-d8:ab:24:63:e7:77-battery model: TrackPoint Keyboard II serial: N/A charge: N/A
    status: N/A
CPU:
  Info: model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 gen: 3
    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80)
    stepping: 0 microcode: 0xA500011
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 6 threads: 12 tpc: 2 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1725 min/max: 400/4280 boost: enabled scaling: driver: amd-pstate-epp
    governor: powersave cores: 1: 1725 2: 1725 3: 1725 4: 1725 5: 1725 6: 1725 7: 1725 8: 1725
    9: 1725 10: 1725 11: 1725 12: 1725 bogomips: 79050
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: always-on; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-1
    empty: DP-1,DP-2,HDMI-A-2 bus-ID: 04:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 41.0 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm4 v: 4.20.0 driver: X: loaded: amdgpu
    dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1017x572mm (40.04x22.52")
    s-diag: 1167mm (45.94")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Dell S2721QS serial: <filter> built: 2023 res:
    mode: 3840x2160 hz: 60 scale: 100% (1) dpi: 163 gamma: 1.2 size: 597x336mm (23.5x13.23")
    diag: 685mm (27") ratio: 16:9 modes: max: 3840x2160 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    gbm: drv: kms_swrast surfaceless: drv: radeonsi x11: drv: radeonsi inactive: wayland
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.2.8-1mx23ahs glx-v: 1.4 es-v: 3.2 direct-render: yes
    renderer: AMD Radeon Graphics (radeonsi renoir LLVM 15.0.6 DRM 3.61 6.12.29-amd64)
    device-ID: 1002:1638 memory: 2.93 GiB unified: no
  API: Vulkan v: 1.4.304 layers: 3 device: 0 type: integrated-gpu name: AMD Radeon Graphics
    (RADV RENOIR) driver: mesa radv v: 24.2.8-1mx23ahs device-ID: 1002:1638 surfaces: xcb,xlib
    device: 1 type: cpu name: llvmpipe (LLVM 15.0.6 256 bits) driver: mesa llvmpipe
    v: 24.2.8-1mx23ahs (LLVM 15.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo de: xfce4-display-settings
    gpu: corectrl,radeontop x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition Audio
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci,
    snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_rembrandt pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio vendor: Realtek
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.12.29-amd64 status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 01:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 02:00.0 chip-ID: 14c3:0608 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
  Info: services: NetworkManager,sshd
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 3-3:2 chip-ID: 0e8d:0608 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 6 state: up address: <filter> bt-v: 5.2 lmp-v: 11
    sub-v: 2411 hci-v: 11 rev: 615 class-ID: 7c0104
  Info: acl-mtu: 1021:6 sco-mtu: 240:8 link-policy: rswitch sniff link-mode: peripheral accept
    service-classes: rendering, capturing, object transfer, audio, telephony
Drives:
  Local Storage: total: 1.39 TiB used: 372.43 GiB (26.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SNVS500G size: 465.76 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: S8H40105 temp: 27.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Timetec model: SD09 size: 953.87 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 8B0 scheme: GPT
Partition:
  ID-1: / raw-size: 225.48 GiB size: 225.48 GiB (100.00%) used: 43.43 GiB (19.3%) fs: btrfs
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
  ID-2: /boot raw-size: 512 MiB size: 487.2 MiB (95.16%) used: 219.8 MiB (45.1%) fs: ext4
    dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-3: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 31.4 MiB (32.7%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-4: /home raw-size: 225.48 GiB size: 225.48 GiB (100.00%) used: 43.43 GiB (19.3%) fs: btrfs
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
  ID-5: /var raw-size: 225.48 GiB size: 225.48 GiB (100.00%) used: 43.43 GiB (19.3%) fs: btrfs
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: file size: 5 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 54.0 C mobo: 38.0 C gpu: amdgpu temp: 42.0 C
  Fan Speeds (rpm): N/A
Repos:
  Packages: 2803 pm: dpkg pkgs: 2798 libs: 1497 tools: apt, apt-get, aptitude, nala, synaptic
    pm: rpm pkgs: 0 pm: flatpak pkgs: 5
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-bookworm.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxrepo.com/mx/repo/ bookworm main non-free
    2: deb https://mxrepo.com/mx/repo/ bookworm ahs
  Active apt repos in: /etc/apt/sources.list.d/vscode.sources
    1: deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main
Info:
  Memory: total: 28 GiB note: est. available: 28.3 GiB used: 2.92 GiB (10.3%)
  Processes: 426 Power: uptime: 3d 4m states: freeze,mem,disk suspend: deep avail: s2idle
    wakeups: 3 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 11.28 GiB
    services: upowerd,xfce4-power-manager Init: SysVinit v: 3.06 runlevel: 5 default: graphical
    tool: systemctl
  Compilers: gcc: 12.2.0 alt: 11 Client: shell wrapper v: 5.2.15-release inxi: 3.3.37
Boot Mode: UEFI

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 8:25 am
by dolphin_oracle
yep depends don't look right for bookworm on that one @Stevo

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 10:42 am
by Stevo
:confused: I'll check--I don't think it's an explicit dependency, and backports' 6.12.30 doesn't mention having to change it.

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 11:01 am
by dolphin_oracle
Stevo wrote: Thu Jun 19, 2025 10:42 am :confused: I'll check--I don't think it's an explicit dependency, and backports' 6.12.30 doesn't mention having to change it.
thanks.

its shown as a pre-depend.

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 11:09 am
by Stevo
I'm rebuilding it. Maybe I accidentally asked pbuilder to build it with trixie. :bagoverhead: I don't have the buildinfo file that gets sent up with the packages any longer, and I don't think they are in the repo, but I think Tim keeps them, and that would show it in a second.

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 12:50 pm
by timkb4cq
The buildinfo files show it was built with debian 12 & MX-23 packages.
debian/control does have the Pre-Depends: linux-base (>= 4.12~) for every linux-image package entry.
The previous debian kernel (6.12.29) had (>= 4.3~)

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 1:17 pm
by Stevo
OK, will have to change that...the actual control file get assembled from other template files at build time, so linux-base instead of lsb-base gives me something to search for.

I have some indications that the nvidia-open-kernel-dkms from Trixie might build on 6.15 kernels, so will test that.

Searching the changelog doesn't bring up anything about Debian changing that, as far as I can tell. :frown:

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 2:50 pm
by mepislover
linux-base 4.12 is available in the stable-backports. Therefore, I was able to update the kernel to version 6.12.32 last week without errors using Synaptic.

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 4:48 pm
by Magister
mepislover wrote: Thu Jun 19, 2025 2:50 pm linux-base 4.12 is available in the stable-backports. Therefore, I was able to update the kernel to version 6.12.32 last week without errors using Synaptic.
I will try thanks!

Re: Cannot upgrade kernel because of linux-base

Posted: Thu Jun 19, 2025 6:23 pm
by Stevo
Thanks! I think I'll port over the backports version to MX so I don't have to change it for every single Trixie kernel backport.

Re: Cannot upgrade kernel because of linux-base

Posted: Fri Jun 20, 2025 4:27 pm
by dr-kart
I was able to update the kernel to version 6.12.32 last week without errors using Synaptic
I couldn't. An error occurred in synaptic:

Code: Select all

E: Internal Error, No file name for linux-headers-6.12.32-amd64:amd64
Then I tried to remove all 6.12.32 leftovers. And another error in synaptic:

Code: Select all

E: /var/cache/apt/archives/linux-image-6.12.32-amd64-unsigned_6.12.32-1~mx23ahs+1_amd64.deb: new linux-image-6.12.32-amd64-unsigned package pre-installation script subprocess returned error exit status 127
Details are:

Code: Select all

(Reading database ... 529802 files and directories currently installed.)
Removing linux-headers-6.12.32-amd64 (6.12.32-1~mx23ahs+1) ...
Removing linux-headers-6.12.32-common (6.12.32-1~mx23ahs+1) ...
Removing linux-kbuild-6.12.32 (6.12.32-1~mx23ahs+1) ...
(Reading database ... 512462 files and directories currently installed.)
Preparing to unpack .../linux-image-6.12.32-amd64-unsigned_6.12.32-1~mx23ahs+1_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: 16: linux-run-hooks: not found
dpkg: error processing archive /var/cache/apt/archives/linux-image-6.12.32-amd64-unsigned_6.12.32-1~mx23ahs+1_amd64.deb (--unpack):
 new linux-image-6.12.32-amd64-unsigned package pre-installation script subprocess returned error exit status 127
W: linux-base is not installed; cannot run postrm hooks
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-6.12.32-amd64-unsigned_6.12.32-1~mx23ahs+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
:confused: sync related?

Re: Cannot upgrade kernel because of linux-base

Posted: Sat Jun 21, 2025 7:17 am
by mepislover
dpkg: error processing archive /var/cache/apt/archives/linux-image-6.12.32-amd64-unsigned_6.12.32-1~mx23ahs+1_amd64.deb (--unpack):
new linux-image-6.12.32-amd64-unsigned package pre-installation script subprocess returned error exit status 127
W: linux-base is not installed; cannot run postrm hooks
According to the error log, required dependencies of the packages to be installed could not be fulfilled. The required version of the linux-base package is not installed on the system.

To do this, please activate the repository for the bookworm-backports in synaptic and update the linux-base package from version 4.9 to the latest version 4.12~bpo12+1. The kernel 6.12.32-1+mx23+1 can then be installed.

Re: Cannot upgrade kernel because of linux-base  [Solved]

Posted: Sun Jun 22, 2025 1:38 am
by Stevo
Apparently, it really needs a newer linux-base to work, so we have that now in our ahs section, where the AHS kernels also live. Apparently, my telling it to use the Bookworm 4.9 wasn't enough.

https://mxrepo.com/mx/repo/pool/ahs/l/linux-base/

Re: Cannot upgrade kernel because of linux-base

Posted: Fri Jul 04, 2025 8:57 am
by Magister
It is working now, dependencies have been fixed, thanks :)