How to downgrade kernel in Linux
Linux life is determined by the kernel. If you are familiar with how GNU / Linux works, Linux is essentially the kernel. Everything else is just a communication tool with it. These tools allow you to get real work done, but they cannot do anything without the kernel.
The kernel of an operating system is like the human cardiovascular system. You tend to forget about it until something goes wrong. Infrequently, but sometimes kernel updates can be problematic. Once the updated Linux kernel doesn't allow you to use your computer, it's time to downgrade it.
Boot into the older kernel
The good news if you recently updated your kernel, is that the process almost never disables the old kernel. The only possible scenario is that you have manually uninstalled the old kernel and that is not a great idea.
To boot into an old kernel, you will need to restart the computer. When the computer loads GRUB, you may need to press a key to select non-standard options. On some systems, old kernels will be displayed here, while on Ubuntu, you will need to select 'Advanced options for Ubuntu' to find old kernels.
After selecting the old kernel, you will boot into your system. Everything will work as before. If you're still having issues, the kernel might not be the problem.
Remove the problematic kernel
If you've booted into the computer and everything works as intended, the upgraded kernel may be the problem. Technically, you can do this every time you boot into your computer, but it is better to remove the problematic kernel completely.
You can do this by using the package management tools of the distribution. The method of implementation will vary based on the system you use. You also need to know the version of the kernel you want to remove. This can be found during the boot process at the GRUB screen. For Ubuntu and other apt-based distributions, you can use the following command:
sudo apt remove linux-image-VERSION-generic linux-headers-VERSION-generic
You can replace the above VERSION with the exact version number of the kernel you are trying to remove. If you only want to keep them for a while, you can use the following command:
sudo apt-mark hold linux-image-generic linux-headers-generic
Avoid future problems
One of the easiest ways to avoid this type of problem is to avoid updates. This gives you the opportunity to see if any reports of users experiencing kernel problems will appear. You should especially keep an eye on users who have similar hardware to you.
If stability is a key factor for you, you can also choose to use LTS distributions. Updates occur less frequently (in addition to security updates). This means you can trust that these things are more stable than the distribution you are using.
Although downgrading is the easiest way to handle kernel issues, it is not the only way. Sometimes it also cannot solve the problem. It is possible that the updated kernel includes the hardware you need, while the error is related to hardware you do not use.
In that case, you will want to build your own kernel instead of relying on the version provided by the distribution. This is not easy, but not as difficult as some people think. See TipsMake.com 's guide for how to create a Custom Kernel on Ubuntu.
Hope you are succesful.
You should read it
- What's new in Linux Kernel 5.9?
- Linux Kernel 5.16 officially released with great features for gamers
- How to update or downgrade WSL kernel on Windows 11
- How does the Linux Kernel work?
- Microsoft will release Linux 'genuine' Linux kernel with Windows 10 WSL
- Is Linux the operating system or the kernel?
- How to create a Custom Kernel on Ubuntu
- Update Linux kernel on Ubuntu via UKUU
May be interested
- How to create a Custom Kernel on Ubuntubuilding the system's operating system kernel from scratch sounds scary. however, actually building linux kernel is easy. in the article below, tipsmake.com will guide you to create custom kernel on ubuntu.
- Guide to downgrade iOS 11.3 to 11.2.2, 11.2.5if you also feel that using ios 11.3 beta is less stable, not suitable for your device, you can choose to downgrade ios 11.3 to bring your device to the previous operating system versions. ios 11.2.2, 11.2.5. so how to downgrade ios 11.3? please read following the detailed instructions in this article.
- Learn about the Linux Kernel and their main functionswith more than 13 million lines of code, the linux kernel is one of the largest open source projects in the world, but what exactly are they and what do they do in the system?
- How to downgrade iOS 11 to iOS 10.3.3 for iPhone 6Safter upgrading to ios 11, if the device is unable to run the operating system stable and often fails, you should downgrade to ios 10.3.3.
- How to Update Ubuntu Kernelthis wikihow teaches you how to update your ubuntu linux kernel, which is the core software that runs the rest of your linux distribution. the easiest way to do this is by installing and running a package manager called 'ukuu', but you can...
- What is KVM (Kernel-Based Virtual Machine)?getting started with kvm on linux is a straightforward process. if you want to run other linux distributions or even windows on your linux pc, all you need to do is install a few modules and prepare your pc for virtualization.
- Here's how to uninstall Windows 10 to return to using Windows 7 or 8.1suppose for some reason that you do not want to use the windows 10 operating system anymore, such as in the process of using windows 10 you often encounter some errors, ... you can completely downgrade from windows 10 to windows 7 or windows 8.1.
- 28 interesting facts about Linuxlinux is a computer operating system and is also the kernel name of the operating system. it is probably the most famous example of the concept of free software and of open source development.
- New news: Apple is paving the way for iOS 7, 8, 9, and 10 downgrades for most iPhonesafter ios 9.3.5 sign lock of devices using apple a5 chip, apple surprised users when there is a sign opening move for ios 7, ios 8 versions on iphone 5, iphone 5s.
- Linux kernel vulnerability exposes Stack memory, causing local data leakthe way the researcher tells an international has just disclosed information about a relatively serious vulnerability that exists in the linux kernel, which can be exploited to leak data and act as a bridge. effective coupling for deeper penetration into victim systems.