{"id":12930,"date":"2019-03-29T03:14:22","date_gmt":"2019-03-29T03:14:22","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12930"},"modified":"2019-03-29T03:14:22","modified_gmt":"2019-03-29T03:14:22","slug":"how-to-install-latest-kernel-5-0-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/how-to-install-latest-kernel-5-0-in-ubuntu\/","title":{"rendered":"How to Install Latest Kernel 5.0 in Ubuntu"},"content":{"rendered":"<p>Periodically new devices and technology coming out and it\u2019s important to keep our Linux system kernel up-to-date if we want to get the most of out it.<\/p>\n<p>Moreover, updating system kernel will ease us to take advantage of new kernel functions and also it helps us to protect ourselves from vulnerabilities that have been found in earlier versions.<\/p>\n<p><b>Suggested Read:<\/b>\u00a0<a href=\"https:\/\/www.tecmint.com\/install-upgrade-kernel-version-in-centos-7\/\" target=\"_blank\" rel=\"noopener\">How to Upgrade Kernel in CentOS 7<\/a><\/p>\n<p>Ready to update your kernel on Ubuntu and Debian or one of their derivatives such as Linux Mint? If so, keep reading!<\/p>\n<h3>Check Installed Kernel Version<\/h3>\n<p>To find the current version of installed kernel on our system we can do:<\/p>\n<pre>$ uname -sr<\/pre>\n<p>The following shows the output of the above command in a\u00a0<strong>Ubuntu 18.04<\/strong>\u00a0server:<\/p>\n<pre>Linux 4.15.0-42-generic\r\n<\/pre>\n<h3>Upgrading Kernel in Ubuntu Server<\/h3>\n<p>To upgrade the kernel in\u00a0<strong>Ubuntu<\/strong>, go to\u00a0<a href=\"http:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/<\/a>\u00a0and choose the desired version (<strong>Kernel 5.0<\/strong>\u00a0is the latest at the time of writing) from the list by clicking on it.<\/p>\n<p>Next, download the\u00a0<code>.deb<\/code>\u00a0files for your system architecture using\u00a0<a href=\"https:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">wget command<\/a>.<\/p>\n<h4>Download Linux Kernel for 32-Bit System<\/h4>\n<pre>$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb\r\n$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb\r\n$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-image-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb\r\n$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb\r\n<\/pre>\n<h4>Download Linux Kernel for 64-Bit System<\/h4>\n<pre>$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb\r\n$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb\r\n$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb\r\n$ wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.0\/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb\r\n<\/pre>\n<p>Once you\u2019ve downloaded all the above kernel files, now install them as follows:<\/p>\n<pre>$ sudo dpkg -i *.deb\r\n<\/pre>\n<h5>Sample Output<\/h5>\n<pre>(Reading database ... 140176 files and directories currently installed.)\r\nPreparing to unpack linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb ...\r\nUnpacking linux-headers-5.0.0-050000 (5.0.0-050000.201903032031) over (5.0.0-050000.201903032031) ...\r\nPreparing to unpack linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb ...\r\nUnpacking linux-headers-5.0.0-050000-generic (5.0.0-050000.201903032031) over (5.0.0-050000.201903032031) ...\r\nPreparing to unpack linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb ...\r\nUnpacking linux-image-unsigned-5.0.0-050000-generic (5.0.0-050000.201903032031) over (5.0.0-050000.201903032031) ...\r\nSelecting previously unselected package linux-modules-5.0.0-050000-generic.\r\nPreparing to unpack linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb ...\r\nUnpacking linux-modules-5.0.0-050000-generic (5.0.0-050000.201903032031) ...\r\nSetting up linux-headers-5.0.0-050000 (5.0.0-050000.201903032031) ...\r\nSetting up linux-headers-5.0.0-050000-generic (5.0.0-050000.201903032031) ...\r\nSetting up linux-modules-5.0.0-050000-generic (5.0.0-050000.201903032031) ...\r\nSetting up linux-image-unsigned-5.0.0-050000-generic (5.0.0-050000.201903032031) ...\r\nProcessing triggers for linux-image-unsigned-5.0.0-050000-generic (5.0.0-050000.201903032031) ...\r\n\/etc\/kernel\/postinst.d\/initramfs-tools:\r\nupdate-initramfs: Generating \/boot\/initrd.img-5.0.0-050000-generic\r\n\/etc\/kernel\/postinst.d\/x-grub-legacy-ec2:\r\nSearching for GRUB installation directory ... found: \/boot\/grub\r\nSearching for default file ... found: \/boot\/grub\/default\r\nTesting for an existing GRUB menu.lst file ... found: \/boot\/grub\/menu.lst\r\nSearching for splash image ... none found, skipping ...\r\nFound kernel: \/boot\/vmlinuz-4.15.0-42-generic\r\nFound kernel: \/boot\/vmlinuz-4.15.0-29-generic\r\nFound kernel: \/boot\/vmlinuz-5.0.0-050000-generic\r\nFound kernel: \/boot\/vmlinuz-4.15.0-42-generic\r\nFound kernel: \/boot\/vmlinuz-4.15.0-29-generic\r\nReplacing config file \/run\/grub\/menu.lst with new version\r\nUpdating \/boot\/grub\/menu.lst ... done\r\n\r\n\/etc\/kernel\/postinst.d\/zz-update-grub:\r\nGenerating grub configuration file ...\r\nFound linux image: \/boot\/vmlinuz-5.0.0-050000-generic\r\nFound initrd image: \/boot\/initrd.img-5.0.0-050000-generic\r\nFound linux image: \/boot\/vmlinuz-4.15.0-42-generic\r\nFound initrd image: \/boot\/initrd.img-4.15.0-42-generic\r\nFound linux image: \/boot\/vmlinuz-4.15.0-29-generic\r\nFound initrd image: \/boot\/initrd.img-4.15.0-29-generic\r\ndone\r\n<\/pre>\n<p>Once the installation is complete,\u00a0<code>reboot<\/code>\u00a0your machine and verify that the new kernel version is being used:<\/p>\n<pre>$ uname -sr\r\n<\/pre>\n<div id=\"attachment_32029\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Verify-Kernel-Version-in-Ubuntu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32029\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Verify-Kernel-Version-in-Ubuntu.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Verify-Kernel-Version-in-Ubuntu.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Verify-Kernel-Version-in-Ubuntu-768x576.png 768w\" alt=\"Verify Kernel Version in Ubuntu\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-32029\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32029\" class=\"wp-caption-text\">Verify Kernel Version in Ubuntu<\/p>\n<\/div>\n<p>And that\u2019s it. You are now using a much more recent kernel version than the one installed by default with\u00a0<strong>Ubuntu<\/strong>.<\/p>\n<h5>Summary<\/h5>\n<p>In this article we\u2019ve shown how to easily upgrade the Linux kernel on Ubuntu system. There is yet another procedure which we haven\u2019t showed here as it requires compiling the kernel from source, which is not recommended on production Linux systems.<\/p>\n<p>If you\u2019re still interested in compiling the kernel as a learning experience, you will get the instructions on how to do it at the\u00a0<a href=\"https:\/\/kernelnewbies.org\/KernelBuild\" target=\"_blank\" rel=\"nofollow noopener\">Kernel Newbies<\/a>\u00a0page.<\/p>\n<p>As always, feel free to use the form below if you have any questions or comments about this article.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/upgrade-kernel-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Periodically new devices and technology coming out and it\u2019s important to keep our Linux system kernel up-to-date if we want to get the most of out it. Moreover, updating system kernel will ease us to take advantage of new kernel functions and also it helps us to protect ourselves from vulnerabilities that have been found &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/how-to-install-latest-kernel-5-0-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Latest Kernel 5.0 in Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12930","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12930"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12930\/revisions"}],"predecessor-version":[{"id":12931,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12930\/revisions\/12931"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}