linuxmint / mintupdate

The Linux Mint Update Manager
320 stars 156 forks source link

OEM kernel headers-package isn't removed by kernel window #825

Open Tibladar opened 1 year ago

Tibladar commented 1 year ago

Describe the bug When installing an OEM kernel with headers, another package gets installed, which currently isn't tracked and thus not removed by mintupdate: linux-oem-6.1-headers-6.1.0-1012

For OEM and other kernel types there are the following packages which get removed correctly:

linux-headers-6.1.0-1012-oem
linux-image-6.1.0-1012-oem
linux-modules-6.1.0-1012-oem

It does get removed via autoremove as it's an unused package

One way of solving would be to add linux-oem-?-headers-VERSION to KERNEL_PKG_NAMES but it seems clumsy to me

To Reproduce Steps to reproduce the behavior:

  1. Install an OEM kernel and it's OEM headers package: sudo apt install linux-headers-oem-22.04c
  2. Goto mintupdate and kernel window
  3. Remove the OEM kernel version
  4. Run sudo apt autoremove and see the linux-oem-6.1-headers-6.1.0-* isn't removed yet

Expected behavior The package should be removed alongside the other packages in the kernel window

Distribution:

Software version: mintupdate 6.0.1

LinuxOnTheDesktop commented 1 year ago

I have a problem that may be related: with a 6.1 kernel installed, I get offers to upgrade to a 6.2 kernel. Details are here in the forum (towards the end of the page).