Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at http://www.kernel.org. Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux-3.0.0.17..Can I update?
NOTE:
The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see: Should I upgrade to the "mainline" kernels?
The simplest set of instructions I always used for kernel upgrade / downgrade are by ubuntuforums.org user by the name of lykwydchykyn (url modified by me for this post):
Download 3 (maybe 4) debs to a folder somewhere:
Install the debs with whatever package manager front-end you use (is gdebi still around?), or use these commands:
Sources:
You could always do the following:
Pick the one you want and then do:
My answer is, YES you can. The stable release was 3.4, but in this tutorial i use 3.3.1.
Ubuntu (32-bit) Generic PAE:
Run the following commands:
Ubuntu (64-bit):
Run the following commands:
Enjoy!
Contrary to some answers here Ubuntu releases the new kernel within a day or two of the main kernel team. I used to upgrade the hard way like some of the answers here suggest but I found this is an easier way.
Implications of manually installing Kernels
Manually installing kernels requires extra work.
There are reasons why you want to install the latest mainline kernel:
As of January 15, 2018 the latest stable mainline kernel is
4.14.13
. At the time of writing many are interested to install it for protection against Meltdown security hole. If you choose to manually install it you should know:sudo apt auto-remove
command. You need to follow this: How do I remove old kernel versions to clean up the boot menu?sudo update-grub
and then Ubuntu's latest LTS kernel will be the first option called Ubuntu on Grub's main menu.Finding the latest kernel
Go to (kernel.ubuntu.com - Kernel PPA Mainline) and press the End key:
Now click on the link
4.9.8
(or a newer one if available when you read this) and the following appears:Note the links with the black airbrush marks. These are the three we will download for Ubuntu 16.04 64-Bit using Intel or AMD processors.
Installing using Terminal
Open a terminal session with Ctrl+Alt+T and use:
Now switch back to the download screen above and single-click on all three of the
.deb
kernel downloads. After downloads complete (you'll see status in your browser) switch back to terminal session and use:Voila! - you are running the latest kernel when the first option in grub boot menu is selected. Your older kernel versions are still available under grub's Advanced Options menu.
After installing the newest kernel a dozen times you will ask the question "How do I remove older kernel versions?" and you will find those answers here in Ask Ubuntu.
Late but new answer.
I will add some more information in my answer. Now my old kernel was
linux-headers-4.8.0-53
. To find out which kernel you have typeuname -r
in terminal. Now type this command to get list of available kernels.This will give you a very big output. Now chose one of them that you want to install and install it by following commands(Don't type these commands like this, replace the words kernal_version with the kernel version which you wish to install)
Now in my case I choose
linux-image-4.10.0-22-generic
so my command will look like thisNow in the end remove old kernel by command
Now when I first did it, I Don't know is it my hardware problem or because of removing the old kernel, but my laptop shows me black screen which happens to my laptop sometimes. Thus I remove it's battery and rebooted and typed the command. Also I don't suffer from my black screen issue any more.
and it gives me
which means kernel is updated.
There is a much simpler way of doing this, and it's the way I use. Simply download the Ubuntu Mainline Kernel Updater script and run it from a terminal. It will download the .deb's for you, install the new kernel, and optionally remove the old one (not recommended) then optionally reboot.
Example output (copied from my terminal):
Almost entirely automated, and completely problem free.
Run the following Terminal commands to install a new Ubuntu mainline kernel.
The script is hosted at Github. Just press Enter instead of a number if you get stuck on a certain question in the Python script.
I wrote a script and always will be up to date.
ukupgrade: Ubuntu Kernel Upgrade
Give executable permission to file
chmod +x ./ukupgrade
Call the script
./ukupgrade
If you don't want to go through the hassle to manually upgrade the kernel you can try UUKU. Works fine even on Ubuntu derivatives like elementory, mint.
I used it to fix my WiFi issue as sometimes some new hardware won't be detected by old kernel. Other than hardware driver update I don't find the need to upgrade kernel. New kernels do have security and slight performance upgrade but also have tendency to break things like your VM.
SOURCE:
http://www.makeuseof.com/tag/upgrade-kernel-ukuu-ubuntu/
http://www.teejeetech.in/2016/07/ukuu-v167.html?m=1
Another option is to try customized and optimized builds, such as this i3/i5/i7 optimized 3.2.1 kernel for Ubuntu:
DuoPetalFlower, My Experiments with Linux - 3.2.1 kernel
He also has Intel atom optimized builds which can work quite well if you're trying to squeeze every last ounce of performance out of a netbook.
There are other kernels like Liquorix that claim to be better optimized for desktop performance.
Though not recommended by some, you can often run official kernels from later versions of Ubuntu without issues. I'm currently running the 3.3.3 precise kernel on oneiric and my machine works better than ever. Performance & battery life increased, while temperatures dropped a few degrees. My issue of a black screen when resuming from standby has also disappeared. Though I personally haven't had issues from using newer kernels, you will find some people who are strongly opposed to doing this.