Saturday, April 12, 2014

Upgrading Ubuntu's kernel


Upgrading Ubuntu Quantal/Precise 64 bit kernel 3.2.0 to 3.14.0 kernel level/version

Method 1


We upgrade just the kernel version/release.

We have:
root@suricata:~/kernel-upgrade# uname -a
Linux suricata 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@suricata:~/kernel-upgrade#

Make sure you have the latest updates:
 apt-get update && apt-get upgrade
 apt-get dist-upgrade

 Download the new kernel image and headers:
 wget  http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/linux-headers-3.14.0-031400-generic_3.14.0-031400.201403310035_amd64.deb

 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/linux-headers-3.14.0-031400_3.14.0-031400.201403310035_all.deb

 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/linux-image-3.14.0-031400-generic_3.14.0-031400.201403310035_amd64.deb

 Install the packages and reboot:
 dpkg -i linux-headers-3.14.0-*.deb linux-image-3.14.0-*.deb
 reboot

 log in and update/upgrade:
 apt-get update && apt-get upgrade

 Let's see:
root@suricata:~# uname -a
Linux suricata 3.14.0-031400-generic #201403310035 SMP Mon Mar 31 04:36:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@suricata:~#

Done.


Method 2


We upgrade the whole release (including the kernel) from Precise to Trusty. This will also update the /etc/apt/ repo lists and more.

 apt-get update && apt-get upgrade
 apt-get dist-upgrade
 do-release-upgrade -d
 reboot

Done.





No comments:

Post a Comment