Old linux headers 5.3.0-62 retained

I have just done a bit of a disk clean up using:
sudo apt clean
sudo apt-get autoremove

Using Disk Analyser, I have found together with the latest 2 linux kernels headers, I still have “linux-headers-5.3.0-62” under usr/src

I am wondering why that old linux headers is still there, considering cleanups done by software centre and me doing apt cleaning as above.
5.3.0-62 is not listed in GRUB, only 5.4.0-56 and 54.

Is there a reason, or subtle requirement for this version of linux headers to be retained?

Found this about apt.

Yes, @jgordon thanks for that item. I had a scan read of it this evening. I accept 5.3.0-62 was transition kernel just before 5.4.0-nn kernels rolled out. Only the kernel-headers are left behind. I may have a go looking at this fully in next few days, but it is not causing me a capacity problem, it’s just untidy.

OK. Also found this:

I have now tidied up old linux-headers and also old linux-images, except most recent versions, using:-
sudo apt-get purge linux-headers-5.3.0-62
sudo apt-get purge linux-image-4.18.n-nn 5.0.n-nn

Done some re-boots and all seems good.

1 Like

Hi, everyone I have the same problem with kernel header 4.15.
I purged them, But they keep reinstalling.