Results 1 to 3 of 3

Thread: How do you keep system from deleting old kernels in 20.04

  1. #1
    Join Date
    Sep 2020
    Beans
    9

    How do you keep system from deleting old kernels in 20.04

    After needing to boot back to the 5.4.0-59-generic kernel to have a working desktop after one of my computers updated to the 5.8 kernel I would like to set it so it keeps all old kernels. Is there a way to do this?
    Also is there away to reinstall a 5.4 kernel on a machine that updates to 5.8 and has erased the 5.4 kernel version I see that synaptic lists 5.4 kernels but not sure how to choose the right one and what dependencies I would need
    Thanks
    Linda

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,134
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: How do you keep system from deleting old kernels in 20.04

    If you have the linux-generic package installed you'll keep your 5.4 branch kernels, and get security updates to them. You're getting 5.8 branch kernels because you've got the HWE package installed, which brings in kernels from later Ubuntu releases.

  3. #3
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do you keep system from deleting old kernels in 20.04

    Software Updater runs 3 commands - update; upgrade and autoremove. If we use the terminal and only run update and upgrade no old kernels will be removed. But be careful, the next time we run Software Updater it will remove old kernels if we let it.

    As for Synaptic. Note the naming convention for Linux kernels: 5.4.0-62. The last two numbers show the order of the kernels. Search Synaptic for a Linux kernel, select one, preferably the one with the highest last two numbers and allow Synaptic to mark all packages that are dependent or related to that choice of kernel. There are several parts to what we call the kernel. We need all of them.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •