How to Install Linux Kernel 4.14 in Ubuntu, Linux Mint

Last updated: November 13, 2017

Linux Kernel

Linux Kernel 4.14 stable was released yesterday. Linus Torvalds announced that:

No surprises this week, although it is probably worth pointing out how the 0day robot has been getting even better (it was very useful before, but Fengguang has been working on making it even better, and reporting the problems it has found).

Sure, some of the new reports turned out to be just 0day doing things that just don’t work (ie KASAN with old gcc versions, but also doing things like loading old ISA drivers in situations that just don’t make sense – remember when you couldn’t even ask if the hardware existed or not, and just had to know), but even then it’s been all good.

The appended shortlog is obviously only for the (small) haul since rc8, and it really is tiny. Not very many commits, and they are small. The biggest thing that stands out in the diffstat is the “leaking_addresses” perl script, which is actually under active development, but I put the first version in for 4.14 just so that people could see that initial state and start looking at the end result and perhaps ask themselves “should my code make these kernel addresses visible to user space”.

How to Install Kernel 4.14 in Ubuntu / Linux Mint:

The mainline kernel PPA has made the new kernel binaries for Ubuntu, available for download at the link below:

Depends on your OS type, download and install the packages in turns:

  1. linux-headers-4.14.0-xxxxxx_all.deb
  2. linux-headers-4.14.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb
  3. linux-image-4.14.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb

Select generic for common system, and lowlatency for a low latency system (e.g. for recording audio), amd64 for 64bit system, i386 for 32bit system, or armhf, arm64, etc for other OS types.

To get the Kernel 4.14 from the command console, run the commands below one by one:

For 64-bit OS:

cd /tmp/

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

sudo dpkg -i *.deb

for 32-bit OS:

cd /tmp/

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_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-image-4.14.0-041400-generic_4.14.0-041400.201711122031_i386.deb

sudo dpkg -i *.deb

After installed these .debs, restart and enjoy!

For those who prefer a graphical tool, try Ukuu.

Uninstall Linux Kernel 4.13:

Start/restart your machine and select boot with the previous kernel in Grub2 -> Advanced menu. Then use Ubuntu Tweak, or other system tool to remove the Kernel 4.14, or you may see this how to remove old kernels tutorial.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

5 responses to How to Install Linux Kernel 4.14 in Ubuntu, Linux Mint

  1. Hello

    I’m Brazilian and new to Linux

    In this new version of Kernel 4.14.0 or 4.14.0, the Virtuabox does not work anymore and even after applying the following command (sudo /usr/lib/virtualbox/vboxdrv.sh setup) it does not work again, error messages appear below:

    edson @ edson-p6540br: ~ $ sudo /usr/lib/virtualbox/vboxdrv.sh setup
    [sudo] password for edson:
    vboxdrv.sh: Stopping VirtualBox services.
    vboxdrv.sh: Building VirtualBox kernel modules.
    vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

    I discovered through research that if we execute this “pach” according to this site ( https://gist.github.com/herbmillerjr/039c129e9c25b047b906e19ad1f23a59 ) VB comes back to work, but I do not know how to create it and run it in Ubuntu 16.04. 3 LTS.

    If you can help me in this matter I am very grateful.

    Edson Santos

  2. and
    > sudo update-grub

  3. Does kernel 4.14 work fine with Linux Mint 18.3 ?

  4. locale: Cannot set LC_ALL to default locale: No such file or directory
    Searching for GRUB installation directory … found: /boot/grub
    Searching for default file … found: /boot/grub/default
    Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst
    Searching for splash image … none found, skipping …
    Found kernel: /boot/vmlinuz-4.14.0-041400-generic
    Found kernel: /boot/vmlinuz-4.13.0-36-generic
    Found kernel: /boot/vmlinuz-4.10.0-42-generic
    Found kernel: /boot/vmlinuz-4.14.0-041400-generic
    Found kernel: /boot/vmlinuz-4.13.0-36-generic
    Found kernel: /boot/vmlinuz-4.10.0-42-generic
    Updating /boot/grub/menu.lst … done

    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.14.0-041400-generic /boot/vmlinuz-4.14.0-041400-generic
    /usr/sbin/grub-probe: error: failed to get canonical path of `overlay’.
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.14.0-041400-generic.postinst line 1052.
    dpkg: error processing package linux-image-4.14.0-041400-generic (–install):
    subprocess installed post-installation script returned error exit status 2
    Setting up linux-headers-4.14.0-041400-generic (4.14.0-041400.201711122031) …
    Errors were encountered while processing:
    linux-image-4.14.0-041400-generic

    any solution ?