Install newest linux kernel

How to install newer versions of the Linux kernel?

This can break your system. The NVIDIA and ATI/AMD drivers and the broadcom wireless will most likely not work on this yet.

I would advise against it but if things get messed up you should be able to fix it by booting an old kernel and removing this one. Something like this .

Boot from CD mount -o bind /dev /dev mount -o bind /proc /proc chroot apt-get install update-grub

From comment by Tomas an easier method:

  • By entering GRUB through holding shift during boot you can enter the «Previous versions» of Linux. There you can select your old kernel, which is by default not removed.

Download the three .DEB files with the name starting with linux from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-precise/

Example for i386 (take the 2 with amd64 in the name for 64-bit and pae in the name for i386 with 4+Gb memory; check uname -a if you are unsure!):

linux-headers-3.4.0-030400_3.4.0-030400.201205210521_all.deb linux-image-3.4.0-030400-generic_3.4.0-030400.201205210521_i386.deb linux-headers-3.4.0-030400-generic_3.4.0-030400.201205210521_i386.deb 
sudo dpkg -i linux-headers-3.4.0-030400_3.4.0-030400.201205210521_all.deb sudo dpkg -i linux-headers-3.4.0-030400-generic_3.4.0-030400.201205210521_i386.deb sudo dpkg -i linux-image-3.4.0-030400-generic_3.4.0-030400.201205210521_i386.deb 

This should show a kernel with 3.4 in the name.

  • «This release includes several Btrfs updates: metadata blocks bigger than 4KB,
  • much better metadata performance,
  • better error handling and
  • better recovery tools.
  • a new X32 ABI which allows to run in 64 bit mode with 32 bit pointers;
  • several updates to the GPU drivers: early modesetting of Nvidia Geforce 600 ‘Kepler’, support of AMD RadeonHD 7xxx and AMD Trinity APU series, and support of Intel Medfield graphics;
  • support of x86 cpu driver autoprobing, a device-mapper target that stores cryptographic hashes of blocks to check for intrusions, another target to use external read-only devices as origin source of a thin provisioned LVM volume,
  • several perf improvements such as GTK2 report GUI and
  • a new ‘Yama’ security module.»
  • You can help test official 3.4 support in 12.04 by following these instructions: http://www.theorangenotebook.com/2012/06/call-for-testing-1210-kernel-on-1204.html

Источник

How to Update Linux Kernel In Ubuntu

The Linux kernel is like the central core of the operating system. It works as sort of a mediator, providing an interface between software applications and computer hardware.

The Linux kernel is the foundation on which all the different types of Linux, operate. It is Open Source software – anyone can decompile, examine, and modify the code.

Читайте также:  Linux file size byte

As technology progresses, developers discover patches and updates to the Linux kernel. These patches can improve security, add functionality, or even improve the speed at which the operating system functions.

If you’re running a Linux operating system (like Ubuntu), it’s a good idea to check and update the kernel regularly.

update linux kernel in ubuntu

  • A server running Ubuntu Linux
  • Access to the Terminal (CTRL-ALT-T or Applications menu > Accessories > Terminal)
  • A user account with sudo privileges
  • The apt tool, built into Ubuntu
  • The Update Manager, built into Ubuntu (optional)

Tutorial on Updating Ubuntu Kernel

Option A: Use the System Update Process

Step 1: Check Your Current Kernel Version

At a terminal window, type:

The terminal returns an output similar to:

The first two digits (in this case, 4.4) are the overall kernel package. The third digit is the version, and the fourth digit shows you the level of patches and fixes.

For more details, refer to our full guide on checking the Linux kernel version. While inspecting the system, you can also check which version of Ubuntu you are running.

Step 2: Update the Repositories

sudo apt-get update output

This command refreshes your local list of software, making a note of any newer revisions and updates. If there’s a newer version of the kernel, the command will find it and mark it for download and installation.

Step 3: Run the upgrade

While still in the terminal, type:

The “dist-upgrade” switch asks Ubuntu to handle any dependencies intelligently. That is, if a particular software package is dependent on another software package to run, this command will make sure that the second package is upgraded before upgrading the first one.

This method is a safe way to upgrade your Ubuntu Linux kernel. The kernel updates accessible through this utility have been tested and verified to work with your version of Ubuntu.

Option B: Use the System Update Process to Force a Kernal Upgrade

There are instances in which a newer kernel has been released but not thoroughly tested with your version of Ubuntu. For example, you might be running Ubuntu 17.10 (Artful Aardvark), and you know that Ubuntu 18.04 (Bionic Beaver) is available.

Updating the kernel in this way requires a more substantial process.

Step 1: Back Up Your Important Files

You’ve probably already done this, but it’s important enough that it’s worth repeating.

Step 2: Use the Software Updater

Launch the software updater by hitting the super key (the “windows” key on most keyboards), and search for Update Manager.

The update manager will notify you if there are any updates needed. If you performed the steps in Part A, it should say your computer is up to date.

Click the Settings button.

A new window should open up with several tabs.

Step 3: Configure the Software Updater

Click the Updates tab.

Tick the first three checkboxes, under “Install updates from:”

Then, at the bottom of this tab, look for a drop-down labeled “Notify me of a new Ubuntu version:”

Click that drop-down, and select:

  • For long-term support versions (If you want to stick with tested and reliable versions with full support)
  • For any new version (If you like playing with the latest-and-greatest, and don’t mind if things are a little buggy)
Читайте также:  Не работает nslookup linux

Close this window, and then re-open it. It should offer the option to upgrade if there’s a new version out. (It usually takes a few days after release for the upgrade to become available, and for the server traffic to lighten up.)

Step 4: Force the Upgrade

If for some reason the system does not offer an upgrade, you can force it by opening a terminal and typing:

update manager force output

The system should respond with a window showing release notes for the new kernel (and version) of Ubuntu.

If everything looks good, click upgrade, and the process will proceed.

Option C: Manually Update the Kernel (Advanced Procedure)

If you just want to upgrade to the latest (untested) kernel available, and you’re aware of the risks, there’s a third procedure for selecting and installing a new kernel.

Before performing this step, it’s worth checking your system configuration. Are you running any custom drivers (especially video drivers)? Any custom configurations or packages? Those may not be compatible with the new kernel.

If you make a mistake and find that the new kernel is incompatible, a recovery option should be available. But it’s better to take precautions and prevent a problem than to try to fix one.

It’s also a good idea to research the release notes for the kernel you want to install. Note the revision number and any features that you intend to work with.

This process will use Ukuu, a graphical utility for updating the kernel. There are other methods, including manually downloading and installing the kernel, or even getting a copy of the source code and compiling it. Those methods are more complicated, and outside the scope of this guide.

Step 1: Install Ukuu

At the terminal, type the following (hit enter after each line):

sudo apt-add-repository ppa:teejee2008/ppa

The first command adds the TeeJeeTech repositories of open-source software for Linux to your basic repositories. The second command refreshes the database, so you’ve got a list of the latest revisions. The third command installs the Ukuu software.

Step 2: Launch Ukuu

The Ukuu utility will launch and should display a list of the available Linux kernel versions.

Step 3: Install the Kernel

Select the kernel you wish to install, then click the “Install” button on the right-hand side.

Step 4: Reboot the System

Once the kernel finishes installing, reboot your system. Once you’re back into the operating system, you can relaunch Ukuu to verify the installation.

Step 5: In Case of Failure

If there’s a catastrophic problem, the GRUB, or boot utility, will keep a copy of the old kernel that you can select and boot into.

On the boot screen, select Advanced options for Ubuntu – then select the previous kernel (identified by the revision number). There’s no need to use the “upstart” or “recovery mode” options.

Step 6: Uninstalling the Kernel

The Ukuu utility also offers the ability to remove old kernels on Ubuntu. Simply click the same kernel that you installed previously, and click Remove on the right-hand side.

For most users, upgrading the kernel in Ubuntu is pretty straightforward. Most systems will prompt when the upgrade is ready. But if you’re looking for a custom kernel, or want to override the automatic process, this guide provides a good foundation for doing so.

Читайте также:  Set default user linux

Источник

Upgrading Linux Kernel in Ubuntu

Sagar Sharma

Upgrade Ubuntu Kernel

Want to upgrade your kernel on Ubuntu? Well, in this guide, I will be sharing two ways to do so:

  • Upgrade to a newer kernel provided by Ubuntu’s repository
  • Installing the latest mainline kernel (unofficial)

Let me share a quick command to install the most recent kernel made available by Canonical (parent company of Ubuntu):

sudo apt update && sudo apt upgrade

Upgrade the Ubuntu kernel from the default repository

Yes. You just need to update your system. If there is a newer kernel version available in the updates, it will be installed.

First, check the current kernel version using the following command:

check the kernel version in ubuntu

Next, update the repositories to find the pending updates:

update repositories in ubuntu

And if you see pending updates, you can execute the following command to update your system:

Once done, reboot your system and check the kernel version.

If the update had a kernel update, it should get you a new kernel:

check the kernel version of ubuntu

And as you can see, it upgraded the kernel from 5.19 to 6.0.

New Book: Efficient Linux at the Command Line

Pretty amazing Linux book with lots of practical tips. It fills in the gap, even for experienced Linux users. Must have in your collection.

Install mainline kernel in Ubuntu via unofficial PPA

If you don’t know, the mainline kernel is maintained by Linus Torvalds and introduces all new features implemented.

So you get to use the spicy stuff before anyone else.

To install the mainline kernel, you’d need a package named mainline .

Which can only be installed by using PPA on Ubuntu. So first, add the PPA by the following command:

sudo add-apt-repository ppa:cappelikan/ppa

Next, use the following command to update repositories and install the mainline package:

sudo apt update && sudo apt install mainline

Now, check available latest kernel update and latest point release for your system:

To install the latest mainline kernel, you will have to use the following command:

sudo mainline --install-latest

install the latest mainline kernel in ubuntu

Whereas if you are looking for the latest point release for your kernel, use the following:

sudo mainline --install-point

Once you are done with the download, a reboot is required to take effect from the new kernel.

Now, check the kernel version and it will show the most recent mainline kernel:

get the most recent version of mainline kernel in ubuntu

But you can do the entire process with GUI.

So if you have access to GUI, you can the given guide that explains the complete usage of the mainline package with GUI:

Roll back to the previous kernel in Ubuntu

If you are facing stability issues with the latest kernel, you can always roll back to the previous kernel.

To roll back to the old kernel, restart your system and select the Advanced options for Ubuntu option.

And then, select the previous kernel and hit enter:

switch back to old kernel in ubuntu

Know how many kernels you have

Ubuntu and other Linux distributions keep the old kernel in case you face any issues running the latest one.

And we have detailed guide on how you can list installed kernels in your system:

I hope you will find this helpful and if you have any queries, let me know in the comments.

Источник

Оцените статью
Adblock
detector