How to Install Linux Kernel 4.17 in Ubuntu 18.04

Last updated: June 7, 2018

Linux Kernel

Linux Kernel 4.17 was finally announced yesterday. Linus Torvalds wrote in lkml.org:

So this last week was pretty calm, even if the pattern of most of the stuff coming in on a Friday made it feel less so as the weekend approached.

And while I would have liked even less changes, I really didn’t get the feeling that another week would help the release in any way, so here we are, with 4.17 released.

No, I didn’t call it 5.0, even though all the git object count numerology was in place for that. It will happen in the not _too_ distant future, and I’m told all the release scripts on kernel.org are ready for it, but I didn’t feel there was any real reason for it. I suspect that around 4.20 – which is I run out of fingers and toes to keep track of minor releases, and thus start getting mightily confused – I’ll switch over. That was what happened for 4.0, after all.

As for the actual changes since rc7 – the shortlog is appended – it’s mostly drivers, networking, perf tooling, and a set of nds32 fixes. With some random other stuff thrown in. Again, the shortlog is obviously only the last calm week, the overall changes since 4.16 are much too big to list in that format.

The big 4.17 stuff was mentioned in the rc1 email when the merge window closed, but I guess it’s worth repeating how 4.17 is actually a slightly smaller kernel than 4.16, thanks to the removal of a number of effectively dead architectures (blackfin, cris, frv, m32r, metag, mn10300, score, and tile). Obviously all the other changes are much more important, but it’s always nice to see spring cleaning like that.

…..

Linux Kernel 4.17 release highlights:

  • AMDGPU DC enabled by default for the new display code stack.
  • Intel Cannonlake graphics support enabled by default.
  • Improved AMDKFD support for pre-Vega discrete GPUs.
  • Clean up lots of code for obsolete CPU architectures
  • A significant power-savings improvement on some hardware
  • And many more other changes.

How to Install Linux Kernel 4.17 in Ubuntu:

A graphical tool UKUU makes it easy to install the latest Kernels in Ubuntu.

For those who don’t want to use any third-party tool, here’s how to manually download and install Kernel 4.17 in Ubuntu (tested in Ubuntu 18.04, though it should work on all current Ubuntu releases).

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.17.0-xxxxxx_all.deb
  2. linux-modules-4.17.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb
  3. linux-image-xxx-4.17.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.17 from the command console, run the commands below one by one:

For 64-bit OS:

cd /tmp/

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-headers-4.17.0-041700_4.17.0-041700.201806041953_all.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-modules-4.17.0-041700-generic_4.17.0-041700.201806041953_amd64.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-headers-4.17.0-041700-generic_4.17.0-041700.201806041953_amd64.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-image-unsigned-4.17.0-041700-generic_4.17.0-041700.201806041953_amd64.deb

sudo dpkg -i *.deb

for 32-bit OS:

cd /tmp/

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-headers-4.17.0-041700_4.17.0-041700.201806041953_all.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-modules-4.17.0-041700-generic_4.17.0-041700.201806041953_i386.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-headers-4.17.0-041700-generic_4.17.0-041700.201806041953_i386.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-image-4.17.0-041700-generic_4.17.0-041700.201806041953_i386.deb

sudo dpkg -i *.deb

After installed these .debs, restart and enjoy!

Uninstall Linux Kernel 4.17:

Start/restart your machine and select boot with the previous kernel in ‘Grub2 -> Advanced Option for Ubuntu’. Then use Ubuntu Tweak, or run command to remove Linux Kernel 4.17.0:

sudo dpkg --purge linux-image-unsigned-4.17.0-041700-generic linux-image-4.17.0-041700-generic

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

12 responses to How to Install Linux Kernel 4.17 in Ubuntu 18.04

  1. I noticed that Ubuntu stopped releasing signed kernel-images post 4.16.3 for amd64. Any insight into why that is? Is it save to install the unsigned versions? Thanks.

  2. dpkg -i did fail on Ubuntu16.04.4 with this image 4.17

  3. First command comes back with an error. /tmp$ wget -c “http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-headers-4.17.0-041700_4.17.0-041700.201806032231_all.deb”
    –2018-06-07 07:35:44– “http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/linux-headers-4.17.0-041700_4.17.0-041700.201806032231_all.deb”
    Resolving kernel.ubuntu.com (kernel.ubuntu.com)… 91.189.94.216
    Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2018-06-07 07:35:44 ERROR 404: Not Found.

  4. Hi Guys,

    I’m always keen to try out the new Kernels, however I ran into a bit of a hiccup with this one: The left (and sometime the right one too) mouse buttons seem to be non-operational. At firest I could get a few clicks, then none of my mouse-button clicks were registering. Keyboards woks fine, seems that the mouse buttons aren’t being recognised. Mouse movement is fine, however.

  5. Jonathan B. Horen July 8, 2018 at 3:41 pm

    Did I miss something? Where are the i386 builds for 4.17.3/4/5 ???

  6. Rustin Lee Haase July 26, 2018 at 11:50 pm

    So very helpful. Thank you very much. :-)

  7. hello ji m,
    please help guid to tweak this kernel via cli
    for intel celeron 1,73 ghz.

    my ubuntu 18.04.1 boot time is 3,40 minute
    and firefox or other application seems more laggy
    compares to windows 7 with readyboost.

    thx ji m.

    ps: i wrote to the point since i dont want to waste your time for complimentary.
    your writing about linux is awesome. i followed you to learn.

  8. Houman Alavehzadeh November 6, 2018 at 5:31 am

    thats was incredible and awesome solution its work for me perfectly …
    thanks