Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Ubuntu Kernel version upgrade procedure.

  1. #11
    Join Date
    Sep 2021
    Beans
    7

    Re: Ubuntu Kernel version upgrade procedure.

    Quote Originally Posted by MAFoElffen View Post
    Well... LOL.

    I quite and easy thing for you do do would to verify if you are actually HWE or not for your release version...
    Code:
    uname -r
    apt-cache show linux-generic-hwe-$(lsb_release -sr) | awk '/Depends:/ {print $2 ", Kernel Version = " $4}' | sed 's/..$//'
    sudo apt list | grep linux-generic-hwe-$(lsb_release -sr)
    - The first will show which kernel you are running on currently.
    - The second will show you which kernel you should be running on if your were in an HWE series for your release.
    - The third will show output if you have HWE installed for your release, or be blank if not installed.

    uname -a
    Linux ubuntu 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

    apt-cache show linux-generic-hwe-$(lsb_release -sr) | awk '/Depends:/ {print $2 ", Kernel Version = " $4}' | sed 's/..$//'
    linux-image-generic-hwe-18.04, Kernel Version = 5.4.0.84.94~18.04.75

    sudo apt list | grep linux-generic-hwe-$(lsb_release -sr)
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


    linux-generic-hwe-18.04/bionic-updates,bionic-security 5.4.0.84.94~18.04.75 amd64
    linux-generic-hwe-18.04-edge/bionic-updates,bionic-security 5.4.0.84.94~18.04.75 amd64

    so, as per your comments, I could see 4.15.0-156 is currently running and according to apt list "hwe 5.4.0.84 is installed", how is this possible?

  2. #12
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,264
    Distro
    Ubuntu

    Re: Ubuntu Kernel version upgrade procedure.

    It doesn't say anything about 5.4.0-84 being installed.
    The command only lists what current kernel would be available, not which are installed.

    It would mark which are installed clearly like this
    Code:
    linux-generic-hwe-18.04/bionic-updates,bionic-security,now 5.4.0.84.94~18.04.75 amd64 [installed]
    linux-generic-hwe-18.04-edge/bionic-updates,bionic-security 5.4.0.84.94~18.04.75 amd64
    See the [installed] marker.

    You can see what you have by cutting down the command to just

    Code:
    apt list | grep linux-generic
    It should show the 4.15.0-156-generic listed with the [installed] mark.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #13
    Join Date
    Sep 2021
    Beans
    7

    Re: Ubuntu Kernel version upgrade procedure.

    query 1: HWE kernel I know how to upgrade, but how to upgrade Standard release kernel(4.15)? say, 18.04.3 is coming up with kernel 4.15.0-122-generic and I want to upgrade to latest/stable 4.15.XX.XX GA version or how to upgrade to specific kernel version? for ex 4.15.0-144-generic

    query 2: IF I'm in 18.04.3, and I want all latest security fixes and bug fixes, Should I move to latest point release or can get all bug fix on current release by upgrading Kernel.?



  4. #14
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    6,010
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Ubuntu Kernel version upgrade procedure.

    1: As explained in post #3, nothing special to do. Just install the upgrades waiting for you:
    Code:
    sudo apt-get update
    sudo apt-get dist-upgrade
    or some variation on that. If you really want some specific kernel instead of the latest, that can be done, but why would you?

    2: As explained in post #5, there is no such thing as upgrading to a point release. If you just install the available upgrades, at some point the version number is incremented (it's in the base-files package), but that doesn't really have any meaning. Of course, the kernel isn't the only thing that gets upgrades, neither is the file that contains the version number.

  5. #15
    Join Date
    Sep 2021
    Beans
    7

    Re: Ubuntu Kernel version upgrade procedure.

    Version incremented you mean, 18.04.x ? for ex: 3 to 4 ?
    or you are referring to kernel version?

  6. #16
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    6,010
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Ubuntu Kernel version upgrade procedure.

    I was referring to 18.04.3 to 18.04.4, but kernel versions also increase occasionally when you regularly install your upgrades. They are completely unrelated, but both happen as a result of installing upgrades. You could upgrade the kernel but not the 18.04.x version number, or the other way around, by would you?

    Don't overthink it. I never think about upgrades, I just install them every day. All of them. That they are made available in the repositories is enough for me to feel safe installing them. It works 99.99% of the time and on the few occasions when it doesn't work, I fix it.

Page 2 of 2 FirstFirst 12

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
  •