How to Upgrade Linux Kernel 4.0.2?

Solution 1:

There is a very useful script called kernel-update. It is in portuguese but it is very simple. First, open Terminal (Ctrl+Alt+T) and install Lynx (text browser):

sudo apt-get install lynx

then run this command to download the script:

wget https://www.dropbox.com/s/fwkeja3cijdbk7l/kernel-update

Change its permission with chmod:

chmod +x kernel-update

Now you can run this script whenever you want to update your kernel with the command

sudo ./kernel-update

It is in Brazilian Portuguese, but...

1) Click A to verify/install a new kernel

2) Click B to delete older kernels

3) Click Q to exit.

Well, do not forget to run in a terminal:

sudo update-initramfs -u

to update linux image and

sudo update-grub 

so GRUB will recognize the new Kernel.

Hope it helps!

EDIT: I got this tutorial from this website.