Public bug reported:
# System
Fresh installation of Ubuntu Desktop 26.04, without TPM-backed
encryption.
Confirmed on three independent installations: Two VMs and one bare
metal.
```
$ lsb_release --description --release
Description: Ubuntu 26.04.1 LTS
Release: 26.04
```
# Observation
Two “generic” kernels are installed:
* linux-generic-hwe-24.04 : marked as manually installed
* linux-generic-hwe-26.04 : marked as automatically installed
I thought, “I’ll remove linux-generic-hwe-24.04 because I don’t need it.
I’m using 26.04, not 24.04”
I checked with --dry-run that nothing else would be removed, and it
wouldn’t.
So…
$ sudo apt remove linux-generic-hwe-24.04
# The hidden problem
The hidden problem is that linux-generic-hwe-26.04 is marked as
automatically installed, and it’s a transitional stub that depends on
linux-generic-hwe-26.04. So, when you next run autoremove, look at what
is removed:
```
$ sudo apt autoremove
REMOVING:
amd64-microcode ieee-data libbpfcc linux-generic-hwe-26.04
python3-bpfcc
ubuntu-kernel-accessories bpfcc-tools intel-microcode
libclang-cpp21
linux-headers-generic-hwe-26.04 python3-netaddr bpftrace
iucode-tool libclang1-21
linux-image-generic-hwe-26.04 thermald
```
In short, linux-generic-hwe-26.04 should be marked as manually installed
so that it’s not automatically removed.
I’m not sure that linux-generic-hwe-24.04 should even be on the system
by default.
** Affects: ubuntu-meta (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2167798
Title:
Clean 26.04 install marks 24.04 dummy as manual; the real 26.04 kernel
ends up as auto; removing dummy wipes the kernel and microcode on
autoremove
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/2167798/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs