Home News Answer Ideas Set up Outdated Ubuntu Linux Kernel

Answer Ideas Set up Outdated Ubuntu Linux Kernel



These directions will information you thru putting in your previous Ubuntu Linux kernel.



Oddly sufficient, it was tough to search out good directions on set up and configure the previous kernel on Ubuntu 16.04. Listed below are some fast directions.

That is Ubuntu 16.04 (in Digital Ocean) with the next kernel:

Set up an older kernel, 4.4.0-22-generic.

Okay, now that the brand new kernel is put in, how can it develop into the default kernel? One choice is to reboot the kernel and choose it from the Grub menu, however this isn’t a simple or everlasting change in a cloud atmosphere.

It is not simple to determine what to place in / and many others / default / grub. Let’s check out the submenus and menu gadgets (hat tip).

The previous kernel could be discovered within the entry 3 submenu. Nonetheless, the numbering is restarted from the submenu. To begin kernel 4.4.0-22, it is advisable enter submenu 1 and menu merchandise 2.

We add this to / and many others / default / grub. It’s at the moment set to 0.

Set the worth to “1> 2”.

Replace grub.


Restarting a node makes use of the previous specified kernel.

There is perhaps a greater method to do that. Let me know within the feedback!

  root @ old-kernely: ~ # uname -aLinux old-kernely 4.4.0-148-generic # 174-Ubuntu SMP Tue 7May 12:20:14 UTC 2019 x86_64 x86_64 x86_64 GNU / Linuxroot @ old-kernely: ~ # 
  root @ old-kernely: ~ # apt set up linux-image-4.4.0-22-genericRead package deal lists ... DoneCreate dependency treeRead standing data ... DoneThe following package deal was put in routinely and is not wanted:  grub-pc-binUse 'apt autoremove' to take away it.Really useful packages:  fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux instruments linux-headers-4.4.0-22-genericThe following NEW packages might be put in:  Linux-image-4.4.0-22-common0 up to date, 1 reinstalled, 0 eliminated and 0 not up to date.Requires 18.7 MB of archives.After that, 55.4 MB of further area might be used.Get: 1 http://mirrors.digitalocean.com/ubuntu xenial-updates / essential amd64 linux-image-4.4.0-22-generic amd64 4.4.0-22.40 [18.7 MB]Recovered 18.7 MB in 0 seconds (69.0 MB / s)Deciding on linux-image-4.4.0-22-generic package deal which was not beforehand chosen.(Learn database ... 54537 put in information and directories.)Getting ready to unpack ... / linux-image-4.4.0-22-generic_4.4.0-22.40_amd64.deb ...Completed.Unpacking linux-image-4.4.0-22-generic (4.4.0-22.40) ...Config linux-image-4.4.0-22-generic (4.4.0-22.40) ...Run Depmod.update-initramfs: postpone replace (hook might be referred to as later)Look at / and many others / kernel / postinst.d.run-parts: run /and many others/kernel/postinst.d/apt-auto-removal 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-genericrun-parts: run /and many others/kernel/postinst.d/initramfs-tools 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-genericupdate-initramfs: Create /boot/initrd.img-4.4.0-22-genericW: mdadm: /and many others/mdadm/mdadm.conf doesn't outline any array.run-parts: run /and many others/kernel/postinst.d/unattended-upgrades 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-genericrun-parts: run /and many others/kernel/postinst.d/update-notifier 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-genericrun-parts: run /and many others/kernel/postinst.d/x-grub-legacy-ec2 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-genericFind your GRUB set up listing ... discovered: / boot / grubStandard file search ... discovered: / boot / grub / defaultTesting an current GRUB menu.lst file ... discovered: /boot/grub/menu.lstSearch boot picture ... nothing discovered, ignore ...Discovered kernel: /boot/vmlinuz-4.4.0-148-genericFound kernel: /boot/vmlinuz-4.4.0-148-genericFound kernel: /boot/vmlinuz-4.4.0-22-genericUpdate /boot/grub/menu.lst ... completedrun-parts: run /and many others/kernel/postinst.d/zz-update-grub 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-genericCreate a Grub config file ...Linux picture detected: /boot/vmlinuz-4.4.0-148-genericFound initrd picture: /boot/initrd.img-4.4.0-148-genericFound Linux picture: /boot/vmlinuz-4.4.0-22-genericFound initrd picture: /boot/initrd.img-4.4.0-22-genericfinishedroot @ old-kernely: ~ # 
  root @ old-kernely: ~ # awk '/ menuentry /