Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 3807  / 2 Years ago, thu, june 16, 2022, 11:30:11

i have the following kernels :


linux-image-5.11.0-27-generic
linux-image-5.11.0-38-generic
linux-image-generic-hwe-20.04

I would like to delete these 2 kernels


linux-image-5.11.0-27-generic  
linux-image-generic-hwe-20.04


  1. Is it safe to do so?

  2. I tried using
    sudo apt autoremove --purge
    to delete old kernels but the old kernels still show up?


More From » 20.04

 Answers
4

Don't delete these files!


It looks like you have two kernels:



  • The current one ending with -38,

  • And one before that ending with -27.


This is normal for Ubuntu. One older kernel (-27) is there for your protection. If for any reason the current kernel breaks you will be able to boot using the older one.


The linux-image-generic-hwe-20.04 is not a kernel. It is "meta package" that tells Ubuntu which kernels to keep up to date. If you delete it, you will not get any kernel security updates.


In other words, don't mess with kernel files. always use sudo apt autoremove. It will always keep the last two kernels.


Hope this helps


[#1063] Saturday, June 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sertold

Total Points: 445
Total Questions: 123
Total Answers: 113

Location: Burundi
Member since Wed, Sep 28, 2022
2 Years ago
sertold questions
Wed, Dec 21, 22, 16:02, 1 Year ago
Fri, Dec 31, 21, 01:50, 2 Years ago
Mon, Mar 7, 22, 16:21, 2 Years ago
Tue, Mar 29, 22, 02:11, 2 Years ago
Mon, May 2, 22, 20:48, 2 Years ago
;