Old kernels in KDE Neon

How can I remove old kernels and is it safe in KDE Neon?

How many do you have? Or rather, which kernels do you have in excess, specifically?

Most Ubuntu based systems keep a few around, 3 or so for.
You may have even more, if one still has upgraded from 20.04 base.

This is a good thing to have, as even the small security fixes most of these kernels provide can have the potential to break an oddball driver here and there.
Check like so:
apt search linux-image | grep installed

Here is what one of my recent-ish installs shows:

$ apt search linux-image | grep installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

linux-image-5.15.0-89-generic/jammy-security,jammy-updates,now 5.15.0-89.99 amd64 [installed,automatic]
linux-image-6.2.0-36-generic/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 amd64 [installed,automatic]
linux-image-6.2.0-37-generic/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 amd64 [installed,automatic]
linux-image-generic/jammy-security,jammy-updates,now 5.15.0.89.86 amd64 [installed,automatic]
linux-image-generic-hwe-22.04/jammy-security,jammy-updates,now 6.2.0.37.38~22.04.15 amd64 [installed,automatic]

Note the last two here are meta-packages that don’t provide any actual kernels, but depend on them. I have three kernels installed.

The first thing to do, if you haven’t already done so, is to run an autoremove with apt, and see if that offers up excess kernels to be removed.

sudo apt autoremove

2 Likes

sudo apt autoremove

should clean things up, but check what it will do before you commit to it and if you have more questions post the list of packages here before you say (Y).

you might also post the output of these queries to shed more light on your situation.

ls -1 /boot/vm*

apt list --installed linux-hwe* linux-image* linux-mod* linux-head* linux-gen*

1 Like

Thank you for your reply.

$ apt search linux-image | grep installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

linux-image-5.15.0-72-generic/jammy-security,jammy-updates,now 5.15.0-72.79 amd64 [installed,auto-removable]
linux-image-5.15.0-73-generic/jammy-security,jammy-updates,now 5.15.0-73.80 amd64 [installed,auto-removable]
linux-image-5.15.0-75-generic/jammy-security,jammy-updates,now 5.15.0-75.82 amd64 [installed,auto-removable]
linux-image-5.15.0-76-generic/now 5.15.0-76.83 amd64 [installed,local]
linux-image-5.15.0-78-generic/jammy-security,jammy-updates,now 5.15.0-78.85 amd64 [installed,auto-removable]
linux-image-5.15.0-79-generic/jammy-security,jammy-updates,now 5.15.0-79.86 amd64 [installed,auto-removable]
linux-image-5.15.0-82-generic/jammy-security,jammy-updates,now 5.15.0-82.91 amd64 [installed,auto-removable]
linux-image-5.15.0-83-generic/jammy-security,jammy-updates,now 5.15.0-83.92 amd64 [installed,auto-removable]
linux-image-5.15.0-84-generic/jammy-security,jammy-updates,now 5.15.0-84.93 amd64 [installed,auto-removable]
linux-image-5.15.0-86-generic/jammy-security,jammy-updates,now 5.15.0-86.96 amd64 [installed,auto-removable]
linux-image-5.15.0-87-generic/jammy-security,jammy-updates,now 5.15.0-87.97 amd64 [installed,auto-removable]
linux-image-5.15.0-88-generic/jammy-security,jammy-updates,now 5.15.0-88.98 amd64 [installed,auto-removable]
linux-image-5.15.0-89-generic/jammy-security,jammy-updates,now 5.15.0-89.99 amd64 [installed,automatic]
linux-image-5.19.0-41-generic/jammy-security,jammy-updates,now 5.19.0-41.42~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-42-generic/jammy-security,jammy-updates,now 5.19.0-42.43~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-43-generic/jammy-security,jammy-updates,now 5.19.0-43.44~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-45-generic/jammy-security,jammy-updates,now 5.19.0-45.46~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-46-generic/jammy-security,jammy-updates,now 5.19.0-46.47~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-50-generic/jammy-security,jammy-updates,now 5.19.0-50.50 amd64 [installed,auto-removable]
linux-image-6.2.0-26-generic/jammy-security,jammy-updates,now 6.2.0-26.26~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-31-generic/jammy-security,jammy-updates,now 6.2.0-31.31~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-32-generic/jammy-security,jammy-updates,now 6.2.0-32.32~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-33-generic/jammy-security,jammy-updates,now 6.2.0-33.33~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-34-generic/jammy-security,jammy-updates,now 6.2.0-34.34~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-35-generic/jammy-security,jammy-updates,now 6.2.0-35.35~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-36-generic/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 amd64 [installed,automatic]
linux-image-6.2.0-37-generic/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 amd64 [installed,automatic]
linux-image-generic/jammy-security,jammy-updates,now 5.15.0.89.86 amd64 [installed,automatic]
linux-image-generic-hwe-22.04/jammy-security,jammy-updates,now 6.2.0.37.38~22.04.15 amd64 [installed,automatic]

$ sudo apt autoremove
Czytanie list pakietów… Gotowe
Budowanie drzewa zależności… Gotowe
Odczyt informacji o stanie… Gotowe
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Następujące pakiety zostaną USUNIĘTE:
cpu-checker enchant-2 fonts-opensymbol gir1.2-ayatanaappindicator3-0.1 ipxe-qemu ipxe-qemu-256k-compat-efi-roms kpeople-vcard libabw-0.1-1 libavif13
libavif15 libayatana-appindicator3-1 libayatana-ido3-0.4-0 libayatana-indicator3-7 libboost-locale1.74.0 libbrlapi0.8 libcacard0 libclucene-contribs1v5
libclucene-core1v5 libcue2 libdecor-0-0 libdecor-0-plugin-1-cairo libe-book-0.1-1 libenchant-2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libexempi8
libexttextcat-2.0-0 libexttextcat-data libfakekey0 libfdt1 libgexiv2-2 libgsf-1-114 libgsf-1-common libgtk-vnc-2.0-0 libgvnc-1.0-0 libgxps2 libhandy-1-0
libharfbuzz-icu0 libhyphen0 libiscsi7 libjavascriptcoregtk-4.0-18 libkf5contacts-data libkf5contacts5 libkf5i18nlocaledata5 libkf5jsapi5 libkf5kdegames7
libkf5pulseaudioqt3 liblangtag-common liblangtag1 libmanette-0.2-0 libmhash2 libmwaw-0.3-3 libmythes-1.2-0 libnvidia-egl-wayland1 libodfgen-0.1-1
libopenal-data libopenal1 liborcus-0.17-0 liborcus-parser-0.17-0 libosinfo-1.0-0 libosinfo-bin libphodav-2.0-0 libphodav-2.0-common libphonon4qt5-data
libpoppler118 libpoppler127 libpoppler130 libpoppler131 libqt5opengl5 libqt5quickparticles5 libqt5webkit5 libraptor2-0 librasqal3 librdf0
libreoffice-base-core libreoffice-common libreoffice-core libreoffice-style-colibre librevenge-0.0-0 libsdl-ttf2.0-0 libsdl2-2.0-0 libslirp0
libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 libspice-server1 libsvtav1enc0 libtotem-plparser-common libtotem-plparser18 libtracker-sparql-3.0-0
libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 liburing2 libusbredirhost1 libusbredirparser1
libvirglrenderer1 libvirt-daemon libvirt-daemon-driver-qemu libvirt-glib-1.0-0 libvirt-glib-1.0-data libvirt0 libwebkit2gtk-4.0-37 libwoff1
libwpd-0.10-10 libwpe-1.0-1 libwpebackend-fdo-1.0-1 libwpg-0.3-3 libwps-0.4-4 libxmlsec1-nss libyajl2 linux-headers-5.15.0-72
linux-headers-5.15.0-72-generic linux-headers-5.15.0-73 linux-headers-5.15.0-73-generic linux-headers-5.15.0-75 linux-headers-5.15.0-75-generic
linux-headers-5.15.0-76 linux-headers-5.15.0-76-generic linux-headers-5.15.0-78 linux-headers-5.15.0-78-generic linux-headers-5.15.0-79
linux-headers-5.15.0-79-generic linux-headers-5.15.0-82 linux-headers-5.15.0-82-generic linux-headers-5.15.0-83 linux-headers-5.15.0-83-generic
linux-headers-5.15.0-84 linux-headers-5.15.0-84-generic linux-headers-5.15.0-86 linux-headers-5.15.0-86-generic linux-headers-5.15.0-87
linux-headers-5.15.0-87-generic linux-headers-5.15.0-88 linux-headers-5.15.0-88-generic linux-headers-5.19.0-41-generic linux-headers-5.19.0-42-generic
linux-headers-5.19.0-43-generic linux-headers-5.19.0-45-generic linux-headers-5.19.0-46-generic linux-headers-6.2.0-26-generic
linux-headers-6.2.0-31-generic linux-headers-6.2.0-32-generic linux-headers-6.2.0-33-generic linux-headers-6.2.0-34-generic
linux-headers-6.2.0-35-generic linux-hwe-5.19-headers-5.19.0-41 linux-hwe-5.19-headers-5.19.0-42 linux-hwe-5.19-headers-5.19.0-43
linux-hwe-5.19-headers-5.19.0-45 linux-hwe-5.19-headers-5.19.0-46 linux-hwe-6.2-headers-6.2.0-26 linux-hwe-6.2-headers-6.2.0-31
linux-hwe-6.2-headers-6.2.0-32 linux-hwe-6.2-headers-6.2.0-33 linux-hwe-6.2-headers-6.2.0-34 linux-hwe-6.2-headers-6.2.0-35
linux-image-5.15.0-72-generic linux-image-5.15.0-73-generic linux-image-5.15.0-75-generic linux-image-5.15.0-76-generic linux-image-5.15.0-78-generic
linux-image-5.15.0-79-generic linux-image-5.15.0-82-generic linux-image-5.15.0-83-generic linux-image-5.15.0-84-generic linux-image-5.15.0-86-generic
linux-image-5.15.0-87-generic linux-image-5.15.0-88-generic linux-image-5.19.0-41-generic linux-image-5.19.0-42-generic linux-image-5.19.0-43-generic
linux-image-5.19.0-45-generic linux-image-5.19.0-46-generic linux-image-5.19.0-50-generic linux-image-6.2.0-26-generic linux-image-6.2.0-31-generic
linux-image-6.2.0-32-generic linux-image-6.2.0-33-generic linux-image-6.2.0-34-generic linux-image-6.2.0-35-generic linux-modules-5.15.0-72-generic
linux-modules-5.15.0-73-generic linux-modules-5.15.0-75-generic linux-modules-5.15.0-76-generic linux-modules-5.15.0-78-generic
linux-modules-5.15.0-79-generic linux-modules-5.15.0-82-generic linux-modules-5.15.0-83-generic linux-modules-5.15.0-84-generic
linux-modules-5.15.0-86-generic linux-modules-5.15.0-87-generic linux-modules-5.15.0-88-generic linux-modules-5.19.0-41-generic
linux-modules-5.19.0-42-generic linux-modules-5.19.0-43-generic linux-modules-5.19.0-45-generic linux-modules-5.19.0-46-generic
linux-modules-5.19.0-50-generic linux-modules-6.2.0-26-generic linux-modules-6.2.0-31-generic linux-modules-6.2.0-32-generic
linux-modules-6.2.0-33-generic linux-modules-6.2.0-34-generic linux-modules-6.2.0-35-generic linux-modules-extra-5.15.0-72-generic
linux-modules-extra-5.15.0-73-generic linux-modules-extra-5.15.0-75-generic linux-modules-extra-5.15.0-76-generic linux-modules-extra-5.15.0-78-generic
linux-modules-extra-5.15.0-79-generic linux-modules-extra-5.15.0-82-generic linux-modules-extra-5.15.0-83-generic linux-modules-extra-5.15.0-84-generic
linux-modules-extra-5.15.0-86-generic linux-modules-extra-5.15.0-87-generic linux-modules-extra-5.15.0-88-generic linux-modules-extra-5.19.0-41-generic
linux-modules-extra-5.19.0-42-generic linux-modules-extra-5.19.0-43-generic linux-modules-extra-5.19.0-45-generic linux-modules-extra-5.19.0-46-generic
linux-modules-extra-5.19.0-50-generic linux-modules-extra-6.2.0-26-generic linux-modules-extra-6.2.0-31-generic linux-modules-extra-6.2.0-32-generic
linux-modules-extra-6.2.0-33-generic linux-modules-extra-6.2.0-34-generic linux-modules-extra-6.2.0-35-generic msr-tools nvidia-firmware-535-535.104.05
nvidia-firmware-535-535.113.01 nvidia-firmware-535-535.54.03 nvidia-firmware-535-535.86.05 nvidia-firmware-535-535.98 osinfo-db ovmf python3-certifi
python3-chardet python3-idna python3-psutil python3-pyudev python3-requests python3-uno python3-urllib3 python3-xlib qemu-block-extra qemu-system-common
qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils qml-module-org-kde-people qml-module-qtquick-particles2 seabios
spice-client-glib-usb-acl-helper sshfs tracker tracker-extract tracker-miner-fs uno-libs-private ure
0 aktualizowanych, 0 nowo instalowanych, 264 usuwanych i 42 nieaktualizowanych.
Po tej operacji zostanie zwolnione 16,6 GB miejsca na dysku.
Kontynuować? [T/n]

$ ls -1 /boot/vm*
/boot/vmlinuz
/boot/vmlinuz-5.15.0-72-generic
/boot/vmlinuz-5.15.0-73-generic
/boot/vmlinuz-5.15.0-75-generic
/boot/vmlinuz-5.15.0-76-generic
/boot/vmlinuz-5.15.0-78-generic
/boot/vmlinuz-5.15.0-79-generic
/boot/vmlinuz-5.15.0-82-generic
/boot/vmlinuz-5.15.0-83-generic
/boot/vmlinuz-5.15.0-84-generic
/boot/vmlinuz-5.15.0-86-generic
/boot/vmlinuz-5.15.0-87-generic
/boot/vmlinuz-5.15.0-88-generic
/boot/vmlinuz-5.15.0-89-generic
/boot/vmlinuz-5.19.0-41-generic
/boot/vmlinuz-5.19.0-42-generic
/boot/vmlinuz-5.19.0-43-generic
/boot/vmlinuz-5.19.0-45-generic
/boot/vmlinuz-5.19.0-46-generic
/boot/vmlinuz-5.19.0-50-generic
/boot/vmlinuz-6.2.0-26-generic
/boot/vmlinuz-6.2.0-31-generic
/boot/vmlinuz-6.2.0-32-generic
/boot/vmlinuz-6.2.0-33-generic
/boot/vmlinuz-6.2.0-34-generic
/boot/vmlinuz-6.2.0-35-generic
/boot/vmlinuz-6.2.0-36-generic
/boot/vmlinuz-6.2.0-37-generic
/boot/vmlinuz.old

$ apt list --installed linux-hwe* linux-image* linux-mod* linux-head* linux-gen*
Listing… Gotowe
linux-generic-hwe-22.04/jammy-security,jammy-updates,now 6.2.0.37.38~22.04.15 amd64 [installed,automatic]
linux-generic/jammy-security,jammy-updates,now 5.15.0.89.86 amd64 [installed]
linux-headers-5.15.0-72-generic/jammy-security,jammy-updates,now 5.15.0-72.79 amd64 [installed,auto-removable]
linux-headers-5.15.0-72/jammy-security,jammy-updates,now 5.15.0-72.79 all [installed,auto-removable]
linux-headers-5.15.0-73-generic/jammy-security,jammy-updates,now 5.15.0-73.80 amd64 [installed,auto-removable]
linux-headers-5.15.0-73/jammy-security,jammy-updates,now 5.15.0-73.80 all [installed,auto-removable]
linux-headers-5.15.0-75-generic/jammy-security,jammy-updates,now 5.15.0-75.82 amd64 [installed,auto-removable]
linux-headers-5.15.0-75/jammy-security,jammy-updates,now 5.15.0-75.82 all [installed,auto-removable]
linux-headers-5.15.0-76-generic/now 5.15.0-76.83 amd64 [installed,local]
linux-headers-5.15.0-76/now 5.15.0-76.83 all [installed,local]
linux-headers-5.15.0-78-generic/jammy-security,jammy-updates,now 5.15.0-78.85 amd64 [installed,auto-removable]
linux-headers-5.15.0-78/jammy-security,jammy-updates,now 5.15.0-78.85 all [installed,auto-removable]
linux-headers-5.15.0-79-generic/jammy-security,jammy-updates,now 5.15.0-79.86 amd64 [installed,auto-removable]
linux-headers-5.15.0-79/jammy-security,jammy-updates,now 5.15.0-79.86 all [installed,auto-removable]
linux-headers-5.15.0-82-generic/jammy-security,jammy-updates,now 5.15.0-82.91 amd64 [installed,auto-removable]
linux-headers-5.15.0-82/jammy-security,jammy-updates,now 5.15.0-82.91 all [installed,auto-removable]
linux-headers-5.15.0-83-generic/jammy-security,jammy-updates,now 5.15.0-83.92 amd64 [installed,auto-removable]
linux-headers-5.15.0-83/jammy-security,jammy-updates,now 5.15.0-83.92 all [installed,auto-removable]
linux-headers-5.15.0-84-generic/jammy-security,jammy-updates,now 5.15.0-84.93 amd64 [installed,auto-removable]
linux-headers-5.15.0-84/jammy-security,jammy-updates,now 5.15.0-84.93 all [installed,auto-removable]
linux-headers-5.15.0-86-generic/jammy-security,jammy-updates,now 5.15.0-86.96 amd64 [installed,auto-removable]
linux-headers-5.15.0-86/jammy-security,jammy-updates,now 5.15.0-86.96 all [installed,auto-removable]
linux-headers-5.15.0-87-generic/jammy-security,jammy-updates,now 5.15.0-87.97 amd64 [installed,auto-removable]
linux-headers-5.15.0-87/jammy-security,jammy-updates,now 5.15.0-87.97 all [installed,auto-removable]
linux-headers-5.15.0-88-generic/jammy-security,jammy-updates,now 5.15.0-88.98 amd64 [installed,auto-removable]
linux-headers-5.15.0-88/jammy-security,jammy-updates,now 5.15.0-88.98 all [installed,auto-removable]
linux-headers-5.15.0-89-generic/jammy-security,jammy-updates,now 5.15.0-89.99 amd64 [installed,automatic]
linux-headers-5.15.0-89/jammy-security,jammy-updates,now 5.15.0-89.99 all [installed,automatic]
linux-headers-5.19.0-41-generic/jammy-security,jammy-updates,now 5.19.0-41.42~22.04.1 amd64 [installed,auto-removable]
linux-headers-5.19.0-42-generic/jammy-security,jammy-updates,now 5.19.0-42.43~22.04.1 amd64 [installed,auto-removable]
linux-headers-5.19.0-43-generic/jammy-security,jammy-updates,now 5.19.0-43.44~22.04.1 amd64 [installed,auto-removable]
linux-headers-5.19.0-45-generic/jammy-security,jammy-updates,now 5.19.0-45.46~22.04.1 amd64 [installed,auto-removable]
linux-headers-5.19.0-46-generic/jammy-security,jammy-updates,now 5.19.0-46.47~22.04.1 amd64 [installed,auto-removable]
linux-headers-5.19.0-50-generic/jammy-security,jammy-updates,now 5.19.0-50.50 amd64 [installed,automatic]
linux-headers-6.2.0-26-generic/jammy-security,jammy-updates,now 6.2.0-26.26~22.04.1 amd64 [installed,auto-removable]
linux-headers-6.2.0-31-generic/jammy-security,jammy-updates,now 6.2.0-31.31~22.04.1 amd64 [installed,auto-removable]
linux-headers-6.2.0-32-generic/jammy-security,jammy-updates,now 6.2.0-32.32~22.04.1 amd64 [installed,auto-removable]
linux-headers-6.2.0-33-generic/jammy-security,jammy-updates,now 6.2.0-33.33~22.04.1 amd64 [installed,auto-removable]
linux-headers-6.2.0-34-generic/jammy-security,jammy-updates,now 6.2.0-34.34~22.04.1 amd64 [installed,auto-removable]
linux-headers-6.2.0-35-generic/jammy-security,jammy-updates,now 6.2.0-35.35~22.04.1 amd64 [installed,auto-removable]
linux-headers-6.2.0-36-generic/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 amd64 [installed,automatic]
linux-headers-6.2.0-37-generic/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 amd64 [installed,automatic]
linux-headers-generic-hwe-22.04/jammy-security,jammy-updates,now 6.2.0.37.38~22.04.15 amd64 [installed,automatic]
linux-headers-generic/jammy-security,jammy-updates,now 5.15.0.89.86 amd64 [installed,automatic]
linux-hwe-5.19-headers-5.19.0-41/jammy-security,jammy-updates,now 5.19.0-41.42~22.04.1 all [installed,auto-removable]
linux-hwe-5.19-headers-5.19.0-42/jammy-security,jammy-updates,now 5.19.0-42.43~22.04.1 all [installed,auto-removable]
linux-hwe-5.19-headers-5.19.0-43/jammy-security,jammy-updates,now 5.19.0-43.44~22.04.1 all [installed,auto-removable]
linux-hwe-5.19-headers-5.19.0-45/jammy-security,jammy-updates,now 5.19.0-45.46~22.04.1 all [installed,auto-removable]
linux-hwe-5.19-headers-5.19.0-46/jammy-security,jammy-updates,now 5.19.0-46.47~22.04.1 all [installed,auto-removable]
linux-hwe-5.19-headers-5.19.0-50/jammy-security,jammy-updates,now 5.19.0-50.50 all [installed,automatic]
linux-hwe-6.2-headers-6.2.0-26/jammy-security,jammy-updates,now 6.2.0-26.26~22.04.1 all [installed,auto-removable]
linux-hwe-6.2-headers-6.2.0-31/jammy-security,jammy-updates,now 6.2.0-31.31~22.04.1 all [installed,auto-removable]
linux-hwe-6.2-headers-6.2.0-32/jammy-security,jammy-updates,now 6.2.0-32.32~22.04.1 all [installed,auto-removable]
linux-hwe-6.2-headers-6.2.0-33/jammy-security,jammy-updates,now 6.2.0-33.33~22.04.1 all [installed,auto-removable]
linux-hwe-6.2-headers-6.2.0-34/jammy-security,jammy-updates,now 6.2.0-34.34~22.04.1 all [installed,auto-removable]
linux-hwe-6.2-headers-6.2.0-35/jammy-security,jammy-updates,now 6.2.0-35.35~22.04.1 all [installed,auto-removable]
linux-hwe-6.2-headers-6.2.0-36/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 all [installed,automatic]
linux-hwe-6.2-headers-6.2.0-37/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 all [installed,automatic]
linux-image-5.15.0-72-generic/jammy-security,jammy-updates,now 5.15.0-72.79 amd64 [installed,auto-removable]
linux-image-5.15.0-73-generic/jammy-security,jammy-updates,now 5.15.0-73.80 amd64 [installed,auto-removable]
linux-image-5.15.0-75-generic/jammy-security,jammy-updates,now 5.15.0-75.82 amd64 [installed,auto-removable]
linux-image-5.15.0-76-generic/now 5.15.0-76.83 amd64 [installed,local]
linux-image-5.15.0-78-generic/jammy-security,jammy-updates,now 5.15.0-78.85 amd64 [installed,auto-removable]
linux-image-5.15.0-79-generic/jammy-security,jammy-updates,now 5.15.0-79.86 amd64 [installed,auto-removable]
linux-image-5.15.0-82-generic/jammy-security,jammy-updates,now 5.15.0-82.91 amd64 [installed,auto-removable]
linux-image-5.15.0-83-generic/jammy-security,jammy-updates,now 5.15.0-83.92 amd64 [installed,auto-removable]
linux-image-5.15.0-84-generic/jammy-security,jammy-updates,now 5.15.0-84.93 amd64 [installed,auto-removable]
linux-image-5.15.0-86-generic/jammy-security,jammy-updates,now 5.15.0-86.96 amd64 [installed,auto-removable]
linux-image-5.15.0-87-generic/jammy-security,jammy-updates,now 5.15.0-87.97 amd64 [installed,auto-removable]
linux-image-5.15.0-88-generic/jammy-security,jammy-updates,now 5.15.0-88.98 amd64 [installed,auto-removable]
linux-image-5.15.0-89-generic/jammy-security,jammy-updates,now 5.15.0-89.99 amd64 [installed,automatic]
linux-image-5.19.0-41-generic/jammy-security,jammy-updates,now 5.19.0-41.42~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-42-generic/jammy-security,jammy-updates,now 5.19.0-42.43~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-43-generic/jammy-security,jammy-updates,now 5.19.0-43.44~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-45-generic/jammy-security,jammy-updates,now 5.19.0-45.46~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-46-generic/jammy-security,jammy-updates,now 5.19.0-46.47~22.04.1 amd64 [installed,auto-removable]
linux-image-5.19.0-50-generic/jammy-security,jammy-updates,now 5.19.0-50.50 amd64 [installed,auto-removable]
linux-image-6.2.0-26-generic/jammy-security,jammy-updates,now 6.2.0-26.26~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-31-generic/jammy-security,jammy-updates,now 6.2.0-31.31~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-32-generic/jammy-security,jammy-updates,now 6.2.0-32.32~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-33-generic/jammy-security,jammy-updates,now 6.2.0-33.33~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-34-generic/jammy-security,jammy-updates,now 6.2.0-34.34~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-35-generic/jammy-security,jammy-updates,now 6.2.0-35.35~22.04.1 amd64 [installed,auto-removable]
linux-image-6.2.0-36-generic/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 amd64 [installed,automatic]
linux-image-6.2.0-37-generic/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 amd64 [installed,automatic]
linux-image-generic-hwe-22.04/jammy-security,jammy-updates,now 6.2.0.37.38~22.04.15 amd64 [installed,automatic]
linux-image-generic/jammy-security,jammy-updates,now 5.15.0.89.86 amd64 [installed,automatic]
linux-modules-5.15.0-72-generic/jammy-security,jammy-updates,now 5.15.0-72.79 amd64 [installed,auto-removable]
linux-modules-5.15.0-73-generic/jammy-security,jammy-updates,now 5.15.0-73.80 amd64 [installed,auto-removable]
linux-modules-5.15.0-75-generic/jammy-security,jammy-updates,now 5.15.0-75.82 amd64 [installed,auto-removable]
linux-modules-5.15.0-76-generic/now 5.15.0-76.83 amd64 [installed,local]
linux-modules-5.15.0-78-generic/jammy-security,jammy-updates,now 5.15.0-78.85 amd64 [installed,auto-removable]
linux-modules-5.15.0-79-generic/jammy-security,jammy-updates,now 5.15.0-79.86 amd64 [installed,auto-removable]
linux-modules-5.15.0-82-generic/jammy-security,jammy-updates,now 5.15.0-82.91 amd64 [installed,auto-removable]
linux-modules-5.15.0-83-generic/jammy-security,jammy-updates,now 5.15.0-83.92 amd64 [installed,auto-removable]
linux-modules-5.15.0-84-generic/jammy-security,jammy-updates,now 5.15.0-84.93 amd64 [installed,auto-removable]
linux-modules-5.15.0-86-generic/jammy-security,jammy-updates,now 5.15.0-86.96 amd64 [installed,auto-removable]
linux-modules-5.15.0-87-generic/jammy-security,jammy-updates,now 5.15.0-87.97 amd64 [installed,auto-removable]
linux-modules-5.15.0-88-generic/jammy-security,jammy-updates,now 5.15.0-88.98 amd64 [installed,auto-removable]
linux-modules-5.15.0-89-generic/jammy-security,jammy-updates,now 5.15.0-89.99 amd64 [installed,automatic]
linux-modules-5.19.0-41-generic/jammy-security,jammy-updates,now 5.19.0-41.42~22.04.1 amd64 [installed,auto-removable]
linux-modules-5.19.0-42-generic/jammy-security,jammy-updates,now 5.19.0-42.43~22.04.1 amd64 [installed,auto-removable]
linux-modules-5.19.0-43-generic/jammy-security,jammy-updates,now 5.19.0-43.44~22.04.1 amd64 [installed,auto-removable]
linux-modules-5.19.0-45-generic/jammy-security,jammy-updates,now 5.19.0-45.46~22.04.1 amd64 [installed,auto-removable]
linux-modules-5.19.0-46-generic/jammy-security,jammy-updates,now 5.19.0-46.47~22.04.1 amd64 [installed,auto-removable]
linux-modules-5.19.0-50-generic/jammy-security,jammy-updates,now 5.19.0-50.50 amd64 [installed,auto-removable]
linux-modules-6.2.0-26-generic/jammy-security,jammy-updates,now 6.2.0-26.26~22.04.1 amd64 [installed,auto-removable]
linux-modules-6.2.0-31-generic/jammy-security,jammy-updates,now 6.2.0-31.31~22.04.1 amd64 [installed,auto-removable]
linux-modules-6.2.0-32-generic/jammy-security,jammy-updates,now 6.2.0-32.32~22.04.1 amd64 [installed,auto-removable]
linux-modules-6.2.0-33-generic/jammy-security,jammy-updates,now 6.2.0-33.33~22.04.1 amd64 [installed,auto-removable]
linux-modules-6.2.0-34-generic/jammy-security,jammy-updates,now 6.2.0-34.34~22.04.1 amd64 [installed,auto-removable]
linux-modules-6.2.0-35-generic/jammy-security,jammy-updates,now 6.2.0-35.35~22.04.1 amd64 [installed,auto-removable]
linux-modules-6.2.0-36-generic/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 amd64 [installed,automatic]
linux-modules-6.2.0-37-generic/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 amd64 [installed,automatic]
linux-modules-extra-5.15.0-72-generic/jammy-security,jammy-updates,now 5.15.0-72.79 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-73-generic/jammy-security,jammy-updates,now 5.15.0-73.80 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-75-generic/jammy-security,jammy-updates,now 5.15.0-75.82 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-76-generic/now 5.15.0-76.83 amd64 [installed,local]
linux-modules-extra-5.15.0-78-generic/jammy-security,jammy-updates,now 5.15.0-78.85 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-79-generic/jammy-security,jammy-updates,now 5.15.0-79.86 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-82-generic/jammy-security,jammy-updates,now 5.15.0-82.91 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-83-generic/jammy-security,jammy-updates,now 5.15.0-83.92 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-84-generic/jammy-security,jammy-updates,now 5.15.0-84.93 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-86-generic/jammy-security,jammy-updates,now 5.15.0-86.96 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-87-generic/jammy-security,jammy-updates,now 5.15.0-87.97 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-88-generic/jammy-security,jammy-updates,now 5.15.0-88.98 amd64 [installed,auto-removable]
linux-modules-extra-5.15.0-89-generic/jammy-security,jammy-updates,now 5.15.0-89.99 amd64 [installed,automatic]
linux-modules-extra-5.19.0-41-generic/jammy-security,jammy-updates,now 5.19.0-41.42~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-5.19.0-42-generic/jammy-security,jammy-updates,now 5.19.0-42.43~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-5.19.0-43-generic/jammy-security,jammy-updates,now 5.19.0-43.44~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-5.19.0-45-generic/jammy-security,jammy-updates,now 5.19.0-45.46~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-5.19.0-46-generic/jammy-security,jammy-updates,now 5.19.0-46.47~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-5.19.0-50-generic/jammy-security,jammy-updates,now 5.19.0-50.50 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-26-generic/jammy-security,jammy-updates,now 6.2.0-26.26~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-31-generic/jammy-security,jammy-updates,now 6.2.0-31.31~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-32-generic/jammy-security,jammy-updates,now 6.2.0-32.32~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-33-generic/jammy-security,jammy-updates,now 6.2.0-33.33~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-34-generic/jammy-security,jammy-updates,now 6.2.0-34.34~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-35-generic/jammy-security,jammy-updates,now 6.2.0-35.35~22.04.1 amd64 [installed,auto-removable]
linux-modules-extra-6.2.0-36-generic/jammy-security,jammy-updates,now 6.2.0-36.37~22.04.1 amd64 [installed,automatic]
linux-modules-extra-6.2.0-37-generic/jammy-security,jammy-updates,now 6.2.0-37.38~22.04.1 amd64 [installed,automatic]

Yup, running sudo apt autoremove will clear things out quite a bit for you.

1 Like

Thank you for your help. Almost 17GB recovered, I needed this space :slight_smile:
Regards

1 Like

that’s a lot of stuff.

i did notice a lot of it was set to auto-removable instead of automatic

not sure if that’s significant, but it is different from my system which regularly keeps my number of kernels at 2 without having to run autoremove

man apt-mark for more info

Sometimes this cleanup process can fail to work. I have seen it happen to people using various *buntu systems over the years, though it is not overly common. I think occasional Ubuntu packaging bugs can mis-mark or fail to properly mark these packages.

There was the time I went through 7 Kubuntu upgrades. I can’t remember the number of kernels I had after that :laughing:

I have one more little problem. I will write here so as not to start a new topic.
In Win10, with speakers and headphones turned
on, I can switch between these devices. In KDE, in order to have sound
from the speakers, they must disconnect the headphones. Is there any
solution to this?