Hi,
Recently I've upgraded from 20.04 to 22.04, this went flawless.
So the old kernel from 20.04 was 5.x.x. etc. The kernel for 22.04 starts with 6.x.x. The first time I ran apt update & apt upgrade after upgrading it upgraded the correct kernel.
A couple of weeks ago it wanted to upgrade the kernel again, but it also wanted to install 5.x.x. kernel, next to the 6.x.x kernel. I upgraded nonetheless and it worked fine.
When i run "dpkg --list | grep linux-image" this is the output:
Code:
rc linux-image-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.11.0-27-generic 5.11.0-27.29~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.11.0-34-generic 5.11.0-34.36~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.11.0-36-generic 5.11.0-36.40~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.11.0-37-generic 5.11.0-37.41~20.04.2 amd64 Signed kernel image generic
rc linux-image-5.11.0-38-generic 5.11.0-38.42~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.11.0-40-generic 5.11.0-40.44~20.04.2 amd64 Signed kernel image generic
rc linux-image-5.11.0-41-generic 5.11.0-41.45~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.11.0-43-generic 5.11.0-43.47~20.04.2 amd64 Signed kernel image generic
rc linux-image-5.11.0-44-generic 5.11.0-44.48~20.04.2 amd64 Signed kernel image generic
rc linux-image-5.11.0-46-generic 5.11.0-46.51~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-25-generic 5.13.0-25.26~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-27-generic 5.13.0-27.29~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-28-generic 5.13.0-28.31~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-30-generic 5.13.0-30.33~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-35-generic 5.13.0-35.40~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-37-generic 5.13.0-37.42~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-39-generic 5.13.0-39.44~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-40-generic 5.13.0-40.45~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-41-generic 5.13.0-41.46~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-44-generic 5.13.0-44.49~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-48-generic 5.13.0-48.54~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-51-generic 5.13.0-51.58~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.13.0-52-generic 5.13.0-52.59~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-100-generic 5.15.0-100.110~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-101-generic 5.15.0-101.111~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-102-generic 5.15.0-102.112~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-105-generic 5.15.0-105.115~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-107-generic 5.15.0-107.117 amd64 Signed kernel image generic
rc linux-image-5.15.0-112-generic 5.15.0-112.122 amd64 Signed kernel image generic
rc linux-image-5.15.0-113-generic 5.15.0-113.123 amd64 Signed kernel image generic
ii linux-image-5.15.0-116-generic 5.15.0-116.126 amd64 Signed kernel image generic
rc linux-image-5.15.0-41-generic 5.15.0-41.44~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-43-generic 5.15.0-43.46~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-46-generic 5.15.0-46.49~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-48-generic 5.15.0-48.54~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-50-generic 5.15.0-50.56~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-52-generic 5.15.0-52.58~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-53-generic 5.15.0-53.59~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-56-generic 5.15.0-56.62~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-57-generic 5.15.0-57.63~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-58-generic 5.15.0-58.64~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-60-generic 5.15.0-60.66~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-67-generic 5.15.0-67.74~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-69-generic 5.15.0-69.76~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-70-generic 5.15.0-70.77~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-71-generic 5.15.0-71.78~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-72-generic 5.15.0-72.79~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-73-generic 5.15.0-73.80~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-75-generic 5.15.0-75.82~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-76-generic 5.15.0-76.83~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-78-generic 5.15.0-78.85~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-79-generic 5.15.0-79.86~20.04.2 amd64 Signed kernel image generic
rc linux-image-5.15.0-82-generic 5.15.0-82.91~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-83-generic 5.15.0-83.92~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-84-generic 5.15.0-84.93~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-86-generic 5.15.0-86.96~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-87-generic 5.15.0-87.97~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-88-generic 5.15.0-88.98~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-89-generic 5.15.0-89.99~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-91-generic 5.15.0-91.101~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-92-generic 5.15.0-92.102~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-94-generic 5.15.0-94.104~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.15.0-97-generic 5.15.0-97.107~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.4.0-26-generic 5.4.0-26.30 amd64 Signed kernel image generic
rc linux-image-5.4.0-29-generic 5.4.0-29.33 amd64 Signed kernel image generic
rc linux-image-5.4.0-31-generic 5.4.0-31.35 amd64 Signed kernel image generic
rc linux-image-5.4.0-33-generic 5.4.0-33.37 amd64 Signed kernel image generic
rc linux-image-5.4.0-37-generic 5.4.0-37.41 amd64 Signed kernel image generic
rc linux-image-5.4.0-39-generic 5.4.0-39.43 amd64 Signed kernel image generic
rc linux-image-5.4.0-40-generic 5.4.0-40.44 amd64 Signed kernel image generic
rc linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic
rc linux-image-5.4.0-45-generic 5.4.0-45.49 amd64 Signed kernel image generic
rc linux-image-5.4.0-47-generic 5.4.0-47.51 amd64 Signed kernel image generic
rc linux-image-5.4.0-48-generic 5.4.0-48.52 amd64 Signed kernel image generic
rc linux-image-5.4.0-51-generic 5.4.0-51.56 amd64 Signed kernel image generic
rc linux-image-5.4.0-52-generic 5.4.0-52.57 amd64 Signed kernel image generic
rc linux-image-5.4.0-53-generic 5.4.0-53.59 amd64 Signed kernel image generic
rc linux-image-5.4.0-54-generic 5.4.0-54.60 amd64 Signed kernel image generic
rc linux-image-5.4.0-56-generic 5.4.0-56.62 amd64 Signed kernel image generic
rc linux-image-5.4.0-58-generic 5.4.0-58.64 amd64 Signed kernel image generic
rc linux-image-5.4.0-59-generic 5.4.0-59.65 amd64 Signed kernel image generic
rc linux-image-5.8.0-34-generic 5.8.0-34.37~20.04.2 amd64 Signed kernel image generic
rc linux-image-5.8.0-36-generic 5.8.0-36.40~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-38-generic 5.8.0-38.43~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-40-generic 5.8.0-40.45~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-41-generic 5.8.0-41.46~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-45-generic 5.8.0-45.51~20.04.1+1 amd64 Signed kernel image generic
rc linux-image-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-63-generic 5.8.0-63.71~20.04.1 amd64 Signed kernel image generic
rc linux-image-6.5.0-35-generic 6.5.0-35.35~22.04.1 amd64 Signed kernel image generic
ii linux-image-6.5.0-41-generic 6.5.0-41.41~22.04.2 amd64 Signed kernel image generic
ii linux-image-6.5.0-44-generic 6.5.0-44.44~22.04.1 amd64 Signed kernel image generic
ii linux-image-generic 5.15.0.116.116 amd64 Generic Linux kernel image
ii linux-image-generic-hwe-22.04 6.5.0.44.44~22.04.1 amd64 Generic Linux kernel image
As you can see the first kernel with "ii" is version 5.15.0-116.126. This is the version apt wanted to install earlier, but it is obsolete. Why does apt want to upgrade old kernels from an old LTS-version? And the next question is, how do I stop this from happening again?
Thanks in advance. If you need more info, please let me know.
Regards,
Sluipneger
Quick edit:
This is the output of apt update && apt upgrade:
Code:
The following NEW packages will be installed:
linux-headers-5.15.0-117 linux-headers-5.15.0-117-generic
linux-headers-6.5.0-45-generic linux-hwe-6.5-headers-6.5.0-45
linux-image-5.15.0-117-generic linux-image-6.5.0-45-generic
linux-modules-5.15.0-117-generic linux-modules-6.5.0-45-generic
linux-modules-extra-5.15.0-117-generic linux-modules-extra-6.5.0-45-generic
The following packages have been kept back:
ldap-utils libldap-2.5-0 libldap-2.5-0:i386 libldap-common
The following packages will be upgraded:
linux-generic linux-generic-hwe-20.04 linux-generic-hwe-22.04
linux-headers-generic linux-headers-generic-hwe-22.04 linux-image-generic
linux-image-generic-hwe-22.04 linux-libc-dev
8 upgraded, 10 newly installed, 0 to remove and 4 not upgraded.
5 standard LTS security updates
Need to get 248 MB of archives.
After this operation, 1.307 MB of additional disk space will be used.
Do you want to continue? [Y/n] n