What’s New in This Release?
- Safer Kernel Cleanup
Improved kernel cleanup logic with better validation, replacing the old code by Canonical engineer Dustin Kirkland that was used for more than 6+ years !.
The script appears to keep 2 kernels by default, so it does seem logical for it to remove the 6.8 one, though why it hadn't before, I can't say.
However, it considers the meta-package as an actual kernel, which is false.
it nuked all of my kernels and kernel meta-packages, save for one of each:
Code:
$ apt search linux-image | grep installed WARNING: apt does not have a stable CLI interface. Use with caution in scripts. linux-image-6.11.0-24-generic/noble-updates,now 6.11.0-24.24~24.04.1 amd64 [installed,automatic] <---actual kernel linux-image-generic-hwe-24.04-edge/noble-updates,now 6.11.0-24.24~24.04.1 amd64 [installed]<---metapackage
Code:
linux-image-6.11.0-21-generic/noble-security,noble-updates,now 6.11.0-21.21~24.04.1+1 amd64 [installed,automatic] linux-image-6.11.0-24-generic/noble-updates,now 6.11.0-24.24~24.04.1 amd64 [installed,automatic] linux-image-6.8.0-58-generic/noble-updates,now 6.8.0-58.60+1 amd64 [installed,automatic] linux-image-generic/noble-updates,now 6.8.0-58.60 amd64 [installed,automatic] linux-image-generic-hwe-24.04/noble-updates,now 6.11.0-24.24~24.04.1 amd64 [installed,automatic] linux-image-generic-hwe-24.04-edge/noble-updates,now 6.11.0-24.24~24.04.1 amd64 [installed]
So, I only actually have ONE actual kernel left on my system.
The tool thinks I have 6 kernels installed, which is quite inaccurate. I have three kernels and three metapackages. Normal Ubuntu LTS would have one or two kernel metapackages, depending on the ISO used.
Code:
Starting kernel cleanup... Current kernel: 6.11.0-24-generic Found 6 kernels, keeping 2, will remove 4 The following kernels will be removed: linux-image-6.8.0-58-generic <--- non-HWE linux-image-6.11.0-21-generic <----previous HWE linux-image-generic <---[metapackage for the "GA" stock kernel] linux-image-generic-hwe-24.04 <---[metapackage for the HWE kernel]
Another test on my laptop, which doesn't have this extra, still leaves me with only 1 kernel + 1 metapackage
Time for a rollback.
[yes, I know this is a neon system, but in terms of kernels and metapackages, it is pure 100% Ubuntu]
Code:
blueman* bpfcc-tools* bpftrace* bridge-utils* chromium* dkms* fakechroot* firefox-nightly* google-chrome-beta* haveged* kpim6-akonadi-calendar* kpim6-akonadi-search* kpim6-kcalendarutils* kpim6-kdepim-runtime* kpim6-kidentitymanagement* kpim6-kimap* kpim6-libgravatar* kpim6-libkdepim* kpim6-libkleo* kpim6-mailcommon* libbpfcc* libfakechroot* liblxc-common* linux-headers-6.8.0-58* linux-hwe-6.11-headers-6.11.0-21* linux-hwe-6.11-tools-6.11.0-21* linux-image-6.11.0-17-generic* linux-image-6.11.0-19-generic* linux-image-6.8.0-45-generic* linux-image-6.8.0-47-generic* linux-image-6.8.0-48-generic* linux-image-6.8.0-49-generic* linux-image-6.8.0-50-generic* linux-image-6.8.0-51-generic* linux-image-6.8.0-52-generic* linux-image-6.8.0-53-generic* linux-image-6.8.0-54-generic* linux-image-6.8.0-55-generic* linux-image-6.8.0-56-generic* linux-image-6.8.0-57-generic* linux-modules-6.11.0-17-generic* linux-modules-6.11.0-19-generic* linux-modules-6.11.0-21-generic* linux-modules-6.8.0-45-generic* linux-modules-6.8.0-47-generic* linux-modules-6.8.0-48-generic* linux-modules-6.8.0-49-generic* linux-modules-6.8.0-50-generic* linux-modules-6.8.0-51-generic* linux-modules-6.8.0-52-generic* linux-modules-6.8.0-53-generic* linux-modules-6.8.0-54-generic* linux-modules-6.8.0-55-generic* linux-modules-6.8.0-56-generic* linux-modules-6.8.0-57-generic* linux-modules-6.8.0-58-generic* linux-modules-extra-6.11.0-17-generic* linux-modules-extra-6.11.0-19-generic* linux-modules-extra-6.11.0-21-generic* linux-modules-extra-6.8.0-45-generic* linux-modules-extra-6.8.0-47-generic* linux-modules-extra-6.8.0-48-generic* linux-modules-extra-6.8.0-49-generic* linux-modules-extra-6.8.0-50-generic* linux-modules-extra-6.8.0-51-generic* linux-modules-extra-6.8.0-52-generic* linux-modules-extra-6.8.0-53-generic* linux-modules-extra-6.8.0-54-generic* linux-modules-extra-6.8.0-55-generic* linux-modules-extra-6.8.0-56-generic* linux-modules-extra-6.8.0-57-generic* linux-modules-extra-6.8.0-58-generic* linux-tools-6.11.0-21-generic* linux-tools-6.8.0-58* linux-tools-6.8.0-58-generic* lxc* lxcfs* python3-bpfcc* python3-netaddr* qemu-guest-agent* rtl88x2bu-dkms* samba* thunderbird* ubuntu-kernel-accessories* waydroid*
Code:
I almost got cranky there for a sec.
OFFTOPIC:
if you don't really care about having the old/original "GA" kernel at all, you can follow what I linked to above.
I need to pester the kubuntu devs as to why Kubuntu LTS ISOs don't include the hwe metapackage by default until the .2 image , while Ubuntu has this ootb, ready for when HWE is released. Kubuntu installs from the first two LTS ISO releases need to manually do this. I think?
Leave a comment: