Pages

Linux Kernel upgrade


sc@ubuntu-16-04-lts:~$ date
Wed Dec  6 05:16:27 EST 2017

Disable service in Ubuntu 14
apt-get install sysv-rc-conf
update-rc.d apache2 disable

Kernel Changelogs:
https://kernelnewbies.org/LinuxVersions
4.x
Linux 4.15 will be Released 14/21 January 2018
Linux 4.14 Released 12 November, 2017 (70 days)
Linux 4.13 Released 3 September, 2017 (63 days)
Linux 4.12 Released 2 July, 2017 (63 days)
Linux 4.11 Released 30 April, 2017 (70 days)
Linux 4.10 Released 19 February, 2017 (70 days)
Linux 4.9 Released 11 December, 2016 (70 days)
Linux 4.8 Released 2 October, 2016 (70 days)
Linux 4.7 Released 24 July, 2016 (70 days)
Linux 4.6 Released 15 May, 2016 (63 days)
Linux 4.5 Released 13 March, 2016 (63 days)
Linux 4.4 Released 10 January, 2016 (70 days)
Linux 4.3 Released 1 November, 2015 (63 days)
Linux 4.2 Released 30 August, 2015 (70 days)
Linux 4.1 Released 21 June, 2015 (70 days)
Linux 4.0 Released 12 April, 2015 (63 days)
https://kernelnewbies.org/Linux_4.15
06-dec-2017
Linux 4.15 has not been released. Meanwhile, you can read about it here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f0b60bfa952458286f43a63c07b0eea170b2cc95



sc@ubuntu-16-04-lts:~$ uname -sr
Linux 4.10.0-28-generic
sc@ubuntu-16-04-lts:~$


Update to current Distro 

Ubuntu 16.04.05 LTS (dec 2017) has:
sc@ubuntu-16-04-lts:~$ uname -sr
Linux 4.10.0-28-generic
Another example (Proxmox 5.1)
root@cvm65:~# uname -r
4.13.4-1-pve

Let's update it
root@ubuntu-16-04-lts:~# apt update
root@ubuntu-16-04-lts:~# apt upgrade -y
root@ubuntu-16-04-lts:~# reboot

Result is kernel update, but anyway old enough:
sc@ubuntu-16-04-lts:~$ uname -sr
Linux 4.10.0-40-generic



Update to latest Kernel

Manual update
1) Go here: http://kernel.ubuntu.com/~kernel-ppa/mainline/
2) Download 3 (maybe 4) debs to a folder somewhere:
mkdir kernel
$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-headers-4.14.0-041400_4.14.0-041400.201711122031_all.deb
$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-headers-4.14.0-041400-generic_4.14.0-041400.201711122031_amd64.deb
$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-image-4.14.0-041400-generic_4.14.0-041400.201711122031_amd64.deb
3) cd /path/to/folder/where/you/put/the/debs
dpkg -i *.deb
dpkg -i linux-*.deb
update-grub
reboot now

Script update
curl https://raw.githubusercontent.com/muhasturk/ukupgrade/master/ukupgrade > ukupgrade
chmod +x ./ukupgrade
!! Edit ./ukupgrade, because it contains reboot after update!!./ukupgrade

Remove old kernel

Current kernel installed
sc@ubuntu-16-04-lts:~$ uname -r
4.14.0-041400-lowlatency
Remove it
dpkg -l |  grep linux
apt-get remove linux-headers-4.14.0-041400-lowlatency
apt-get remove linux-image-4.14.0-041400-lowlatency
apt autoremove
update-grub
reboot now
Current kernel:
sc@ubuntu-16-04-lts:~$ uname -sr
Linux 4.14.0-041400-genericsc@ubuntu-16-04-lts:~$