0

I need to upgrade my kernel version from 5.15.0-40-lowlatency to latest version which is 5.18.6. I tried a lot of methods. The codes successfully run in the terminal, but after I reboot, it still stays the same kernel version which is 5.15.0-40-lowlatency. These are the code I used (one of the method I tried).

wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
sudo ubuntu-mainline-kernel.sh -c
sudo ubuntu-mainline-kernel.sh -i
sudo reboot

> subaitha@subaitha-virtualbox:~$ wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh --2022-06-29 19:32:26-- https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.108.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 26474 (26K) [text/plain] Saving to: ‘ubuntu-mainline-kernel.sh.5’ ubuntu-mainline-kernel. 100%[===============================>] 25.85K --.-KB/s in 0.05s
2022-06-29 19:32:27 (477 KB/s) - ‘ubuntu-mainline-kernel.sh.5’ saved [26474/26474]

> subaitha@subaitha-virtualbox:~$ sudo install ubuntu-mainline-kernel.sh /usr/local/bin/[sudo] password for subaitha:

> subaitha@subaitha-virtualbox:~$ sudo ubuntu-mainline-kernel.sh -c Finding latest version available on kernel.ubuntu.com: v5.18.8 Finding latest installed versiondpkg-query: no packages found matching linux-image-unsigned-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb : none A newer kernel version (v5.18.8) is available

> subaitha@subaitha-virtualbox:~$ sudo ubuntu-mainline-kernel.sh -i dpkg-query: no packages found matching linux-image-unsigned-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb Finding latest version available on kernel.ubuntu.com Latest version is: v5.18.8, continue? (y/N) Will download 6 files from kernel.ubuntu.com: Downloading amd64/linux-headers-5.18.8-051808-generic_5.18.8-051808.202206290850_amd64.deb: 0% 100%
Downloading amd64/linux-headers-5.18.8-051808_5.18.8-051808.202206290850_all.deb: 100%
Downloading amd64/linux-image-unsigned-5.18.8-051808-generic_5.18.8-051808.202206290850_amd64.deb: 100%
Downloading amd64/linux-modules-5.18.8-051808-generic_5.18.8-051808.202206290850_amd64.deb: 0% 100%
Downloading amd64/CHECKSUMS: 100%
Downloading amd64/CHECKSUMS.gpg: 100%
Signature of checksum file has been successfully verified Checksums of deb files have been successfully verified with sha256sum Installing 4 packages Cleaning up work folder

.

subaitha@subaitha-virtualbox:~$ sudo update-grub
[sudo] password for subaitha: 
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-40-lowlatency
Found initrd image: /boot/initrd.img-5.15.0-40-lowlatency
Found linux image: /boot/vmlinuz-5.18.8-051808-generic
Found initrd image: /boot/initrd.img-5.18.8-051808-generic
Found linux image: /boot/vmlinuz-5.18.8-051808-generic
Found initrd image: /boot/initrd.img-5.18.8-051808-generic
Found linux image: /boot/vmlinuz-5.18.0-051800-generic
Found initrd image: /boot/initrd.img-5.18.0-051800-generic
Found linux image: /boot/vmlinuz-5.16.0-051600-generic
Found initrd image: /boot/initrd.img-5.16.0-051600-generic
Found linux image: /boot/vmlinuz-5.15.0-40-lowlatency
Found initrd image: /boot/initrd.img-5.15.0-40-lowlatency
Found linux image: /boot/vmlinuz-5.15.0-40-generic
Found initrd image: /boot/initrd.img-5.15.0-40-generic
Found linux image: /boot/vmlinuz-5.15.0-24-lowlatency
Found initrd image: /boot/initrd.img-5.15.0-24-lowlatency
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done

subaitha@subaitha-virtualbox:~$ sudo reboot

Doug Smythies
  • 15,448
  • 5
  • 44
  • 61
afrin
  • 1
  • Did you remember to tell GRUB about the new kernel? – user535733 Jun 29 '22 at 12:26
  • Can I know how to tell GRUB for my new updated kernel? @user535733 – afrin Jun 29 '22 at 13:48
  • Well, if the kernel is properly installed then a plain old sudo update-grub is all you need. Installing the new kernel properly and telling GRUB about the new kernel are always necessary steps and most reputable kernel-building tutorials include those steps. – user535733 Jun 29 '22 at 14:06
  • I tried adding grub (also tried as root user) still my kernel is not updated. I am sorryy..I too new for this – afrin Jun 29 '22 at 14:48
  • 1
    What options are in your grub boot menu? – TheAwesome98 Jun 29 '22 at 15:02
  • How to see the grub menus, without booting: https://askubuntu.com/a/1020892/289138 – Hannu Jun 29 '22 at 16:59

0 Answers0