Guide | How To Upgrade Kernel in Linux Distributions

The associated guide may contain user-generated or external content.

Soulbound

Moderator
Thread author
Verified
Staff Member
Well-known
Jan 14, 2015
1,761
Hi All,

Below is how one could choose to upgrade the current Linux Kernel to latest available version.

Note that the only thing that is not covered here is the manual Kernel compiling method which can be used on Fedora/OpenSUSE/Gentoo based systems.

Both Fedora and OpenSUSE ship with a specific Kernel type. At time of writting this, Fedora should be already on Kernel 3.17, if not it is soon to be, as it was released with 3.16. OpenSUSE 13.2 was released with 3.16 as well. On usual updates of the distro (not to confuse with upgrade), a new version is released by the relevant distro teams accordingly, improving stability, hardware and software support etc.

The same applies to Ubuntu based systems, Arch Linux and up to a certain extend Debian (Debian stable however not so much at all).

Cannot talk about Gentoo as I have not used much of it and it is a hard system to get the hang of it.

So here are the methods I have used so far, broken down by its based system.

IMPORTANT: Please ensure you are running as ROOT. Commands are with that in mind. If you want to be under ROOT, issue the SUDO command or SU - before typing the main commands.

Ubuntu family and derivatives (Ubuntu/Kubuntu/Xubuntu/Lubuntu - linux Lite - Ubuntu Mate - Elementary OS Luna etc):

Easiest way to manually upgrade your Kernel is:
Go to the Ubuntu Kernel PPA Mainline site, look for latest version (at time of writing, latest stable release (not Release Candidate (RC)) was 3.18 Vivid.
Go inside the link and download manually the following packages (note that with new releases numbers will change but you must have both Headers and Image):
linux-headers-3.18.3-031803-generic_3.18.3-031803.201501161810_i386.deb
linux-headers-3.18.3-031803_3.18.3-031803.201501161810_all.deb

linux-image-3.18.3-031803-generic_3.18.3-031803.201501161810_i386.deb

NOTE: I went with 32bit for this example.

Once downloaded, open the terminal of your choice and do the following commands:

cd ~/Downloads
sudo dpkg -i linux*.deb

Note: Downloads is assuming thats the location where you have downloaded the deb files. Make sure no older or other kernel deb files present.

Once the above is done, simply reboot and you will have the choice to then boot up on the new kernel.



Debian 7 Wheezy and any variant (Crunchbang Linux):

Easiest method is to update it via Backports to Testing branch. You will need to add the Backports sources. Once done:

Do the following commands on the terminal of your choice:
apt-cache search linux-image
apt-get install linux-image-flavour

Reboot and voila.
The above command also applies to stable version (should there be any updates).

Another method, which is the one I have always used is to use Liquorix Project Kernel.


To do so, open a terminal and manually edit the sources list (or simply add it on synaptic): Below is the liquorix source list, which usually you would disable if you manually add it to the existing source list by using ## instead of #.

Code:
/etc/apt/sources.list.d/liquorix.list
deb http://liquorix.net/debian sid main
deb-src http://liquorix.net/debian sid main


Make sure that the list has:
# Mirrors:
#
# Unit193 - France
# deb http://mirror.unit193.net/liquorix sid main
# deb-src http://mirror.unit193.net/liquorix sid main
#
# Liquorix - Cloudfront Global CDN
# deb http://cdn.liquorix.net/debian sid main
# deb-src http://cdn.liquorix.net/debian sid main

Then, run in a terminal this command to install the keyring since all files from Liquiorix are signed:

apt-get update
apt-get install liquorix-keyring

Now to install it Run in a terminal the following command and then reboot:
32-bit: apt-get install linux-image-liquorix-686 linux-headers-liquorix-686
32-bit with PAE support: apt-get install linux-image-liquorix-686-pae linux-headers-liquorix-686-pae
64-bit: apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
Reboot and done.

For Arch Linux, I suggest you to visit the Arch Wiki accordingly.


Bonus: You can also go Liquorix kernel path to install it in Ubuntu Based Systems, but its slightly more different and well, use it at your own risk:

Issue the following commands in your terminal:
echo "deb http://liquorix.net/debian sid main" | sudo tee /etc/apt/sources.list.d/liquorix.list
echo "deb-src http://liquorix.net/debian sid main" | sudo tee -a /etc/apt/sources.list.d/liquorix.list
sudo apt-get update
sudo apt-get install '^liquorix-([^-]+-)?keyring.?'

Then run the following commands:
apt-cache search liquorix
sudo apt-get install ENTER THE IMAGE AND HEADERS STRINGS (refer to Debian section above)
Reboot.

Hope this helps anyone who has any queries in upgrading kernels.
 
I

illumination

I just upgrade my kernel in Ubuntu Mate 14.04.1 from 3.13 to 3.16 for better hardware support.. This is the command line..

For command line, you can run below commands one by one to download and install the new kernel:

1. For 32-bit system:

cd /tmp/

wget http://kernel.ubuntu.com/~kernel-pp...0-generic_3.16.0-031600.201408031935_i386.deb

wget http://kernel.ubuntu.com/~kernel-pp...6.0-031600_3.16.0-031600.201408031935_all.deb

wget http://kernel.ubuntu.com/~kernel-pp...0-generic_3.16.0-031600.201408031935_i386.deb

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


2. For 64-bit system:

cd /tmp/

wget http://kernel.ubuntu.com/~kernel-pp...-generic_3.16.0-031600.201408031935_amd64.deb

wget http://kernel.ubuntu.com/~kernel-pp...6.0-031600_3.16.0-031600.201408031935_all.deb

wget http://kernel.ubuntu.com/~kernel-pp...-generic_3.16.0-031600.201408031935_amd64.deb

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

Reboot and done.

If for some reason this kernel release doesn’t work properly for you, reboot into previous kernel (Grub -> Advanced -> select previous kernel) and run this command to remove Linux Kernel 3.16:

sudo apt-get remove linux-headers-3.16.0-* linux-image-3.16.0-*

Finally update grub menu:

sudo update-grub
 
Last edited by a moderator:

Soulbound

Moderator
Thread author
Verified
Staff Member
Well-known
Jan 14, 2015
1,761
I just upgrade my kernel in Ubuntu Mate 14.04.1 from 3.13 to 3.16 for better hardware support.. This is the command line..
Wget command does the download automatically so is similar to going to mainline link tho you could upgrade to 3.18 for more improvements. If issues u can always reboot on 3.16. Totally forgot about the wget command thanks for sharing!
 
I

illumination

Wget command does the download automatically so is similar to going to mainline link tho you could upgrade to 3.18 for more improvements. If issues u can always reboot on 3.16. Totally forgot about the wget command thanks for sharing!

Welcome.. :)
I have run 3.16 in the 14.10 version, and it worked well with my hardware, i may stick with this a bit until 3.18 matures some..

gO9rhWX.png
 
  • Like
Reactions: Exterminator

f1computerexperts

New Member
Feb 10, 2014
9
For Ubuntu and Debian I build it manually by downloading the latest kernel from kernel.org. Linux.com has an excellent article by Devyn C. Johnson. I take it a step further by compiling only the drivers necessary for my particular setup. I keep a copy of my working kernel config on my flash drive for future building.
 
I

illumination

Wget command does the download automatically so is similar to going to mainline link tho you could upgrade to 3.18 for more improvements. If issues u can always reboot on 3.16. Totally forgot about the wget command thanks for sharing!
For those that would like to upgrade to 3.18 with Wget, here is the command lines..

 

Soulbound

Moderator
Thread author
Verified
Staff Member
Well-known
Jan 14, 2015
1,761
Just to add grab grub customizer for more options in a GUI mode to tweak the grub2. Always staring at command line can be bad despite I spend most my time on command line:)
 

Soulbound

Moderator
Thread author
Verified
Staff Member
Well-known
Jan 14, 2015
1,761
Welcome.. :)
I have run 3.16 in the 14.10 version, and it worked well with my hardware, i may stick with this a bit until 3.18 matures some..

gO9rhWX.png

Give liquorix kernel a try but on vm first ifyou want. I was running it on lubuntu before. For my Debian ones I always used liquorix kernels.

Sorry on phone so excuse extra posts
 

Soulbound

Moderator
Thread author
Verified
Staff Member
Well-known
Jan 14, 2015
1,761
Will be busy as I put suse on the main first before doing any configuration and customization. Well so far so good but their default file system is giving me question marks. Wonder why not ext4 by default. Xfce or mate... network install here we go.
 

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top