Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to upgrade Linux Kernel in Ubuntu system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to upgrade Linux kernel in Ubuntu system". In daily operation, I believe many people have doubts about how to upgrade Linux kernel in Ubuntu system. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to upgrade Linux kernel in Ubuntu system"! Next, please follow the small series to learn together!

How to update Linux kernel to improve system performance

The Linux kernel is currently being developed at an unprecedented rate, with a major release occurring roughly every two to three months. Each release brings several new features and improvements that can make many people's processing experience faster, more efficient, or better in other ways.

The problem is that you can't use these kernels when they're released, you have to wait until your distribution brings a new kernel release. We talked earlier about the benefits of regular kernel updates, so you don't have to wait until then. Let us tell you what to do.

Disclaimer: As mentioned in some of our previous articles, upgrading the kernel has a (small) risk of breaking your system. If this happens, it is usually possible to keep the system working by using the old kernel, but sometimes it is not. So we're not responsible for any damage to the system, you do it at your own risk!

preliminary working

To update your kernel, you first need to determine whether you are using a 32-bit or 64-bit system. Open the terminal and run:

The code is as follows:

uname -a

Check whether the output is x86_64 or i686. If it's x86_64, you run the 64-bit version, otherwise you run the 32-bit version. Remember this, it's important.

Next, visit the official Linux kernel website, which will tell you the current stable kernel version. You can try the RC release if you like, but it's a lot less tested than the stable release. Use a stable kernel unless you're sure you want to release a pre-release.

How to download the 4.2 kernel update in Ubuntu:

Binary packages for this kernel version are available for download at the following link:

Download 4.2 Kernel (.DEB)

First check your operating system type, 32-bit (i386) or 64-bit (amd64), then download and install packages one by one using the following methods:

The code is as follows:

linux-headers-4.2.0-xxx_all.deb

linux-headers-4.2.0-xxx-generic_xxx_i386/amd64.deb

linux-image-4.2.0-xxx-generic_xxx_i386/amd64.deb

After installing the kernel, run sudo update-grub command on terminal (Ctrl+Alt+T) to update grub boot-loader.

If you need a low-latency system (for recording audio, for example), download and install the following package:

The code is as follows:

linux-headers-4.2.0_xxx_all.deb

linux-headers-4.2.0-xxx-lowlatency_xxx_i386/amd64.deb

linux-image-4.2.0-xxx-lowlatency_xxx_i386/amd64.deb

For Ubuntu servers without a graphical user interface, you can run the following command to download one by one via wget and install via dpkg:

For 64-bit systems, run:

The code is as follows:

cd /tmp/

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/linux-headers-4.2.0-040200_4.2.0-040200.201508301530_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/linux-headers-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/linux-image-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb

sudo dpkg -i linux-headers-4.2.0-*.deb linux-image-4.2.0-*.deb

For 32-bit systems, run:

The code is as follows:

cd /tmp/

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/linux-headers-4.2.0-040200_4.2.0-040200.201508301530_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/linux-headers-4.2.0-040200-generic_4.2.0-040200.201508301530_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/linux-image-4.2.0-040200-generic_4.2.0-040200.201508301530_i386.deb

sudo dpkg -i linux-headers-4.2.0-*.deb linux-image-4.2.0-*.deb

Finally, restart the computer to take effect.

At this point, the study of "How to upgrade Linux kernel in Ubuntu system" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report