{"id":1698,"date":"2021-12-16T12:36:08","date_gmt":"2021-12-16T09:36:08","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/02\/26\/ubuntu-update-kernel-guide\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/02\/26\/ubuntu-update-kernel-guide\/"},"modified":"2021-12-16T12:36:08","modified_gmt":"2021-12-16T09:36:08","slug":"ubuntu-update-kernel-guide","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1698-ubuntu-update-kernel-guide\/","title":{"rendered":"Ubuntu: update kernel [Guide]"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>If you\u2019ve used Ubuntu long enough, you\u2019ll notice that the Linux kernel doesn\u2019t often get updated to a new release. Usually, the Ubuntu developers push out point releases until the next new Ubuntu release.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396196 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide.png\" alt=\"\" width=\"1200\" height=\"656\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-3.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-5.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-7.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>This guide will go over how you can update the Ubuntu kernel manually by downloading developer kernel packages. We\u2019ll also cover a useful app known as Mainline to give you new kernel upgrades on Ubuntu.<\/p>\n<h2>Ubuntu: update kernel \u2013 Downloading kernel packages manually<\/h2>\n<p>A foolproof way of getting the latest Linux kernel on Ubuntu is by manually downloading all of the packages directly from the Ubuntu mainline kernel website. The Ubuntu mainline kernel website regularly publishes new releases of the Linux kernel, built for Ubuntu.<\/p>\n<p>These packages aren\u2019t bug-proof, and often you\u2019ll find Linux kernel modules refusing to install at times. However, if you want to update the Linux kernel on Ubuntu, this is a great way to go.<\/p>\n<p>To update your Ubuntu kernel using the mainline packages, follow the step-by-step instructions below.<\/p>\n<p><strong>Step 1:<\/strong> Open up a terminal window on the Ubuntu desktop. A terminal window is required to deal with kernel packages. You will not be able to update your Ubuntu kernel with the Ubuntu software center.<\/p>\n<p>To open up a terminal window on the Ubuntu desktop, press <strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard. Alternatively, search for \u201cTerminal\u201d in the app menu and launch it that way.<\/p>\n<p><strong>Step 2:<\/strong> Once the terminal window is open on your Ubuntu PC, install the Lynx command-line web browser. This web browser will come in handy later on in the instructions.<\/p>\n<p>To install the Lynx web browser on your Ubuntu Linux PC, make use of the following\u00a0<strong>apt install\u00a0<\/strong>command and install the \u201clynx\u201d package.<\/p>\n<pre>\nsudo apt install lynx\n<\/pre>\n<p><strong>Step 3:<\/strong> After installing the Lynx package, head over to the Ubuntu mainline kernel website. Once on the website, find a kernel version to install. The link we\u2019ve provided sorts the versions from newest to oldest.<\/p>\n<p>For example, to access the Linux kernel 5.11, you\u2019d select the v5.11 folder, etc.<\/p>\n<p><strong>Step 4:<\/strong> After you\u2019ve accessed the kernel version folder, scroll down the page till you find the \u201camd64\u201d folder. If you can\u2019t find it, it is in the file list below the package links.<\/p>\n<p><strong>Step 5:<\/strong> When you\u2019ve opened up the \u201camd64\u201d folder on the mainline kernel website, the URL box in your web browser should look similar to the example below.<\/p>\n<p><code>https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.11\/amd64\/<\/code><\/p>\n<p>Take the URL and put it in the command below, replacing <strong>MY_KERNEL_URL_HERE<\/strong>.<\/p>\n<p><code>lynx --dump <strong>MY_KERNEL_URL_HERE<\/strong> | awk '\/http\/{print $2}' | grep deb | grep -v \"lowlatency\" &gt; ~\/kernel-packages.txt<\/code><\/p>\n<p><strong>Step 6:<\/strong> After replacing the MY_KERNEL_URL_HERE in the command, it should look like the example below. In this example, we are using kernel 5.11.<\/p>\n<p><code>lynx --dump https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.11\/amd64\/ | awk '\/http\/{print $2}' | grep deb | grep -v \"lowlatency\" &gt; ~\/kernel-packages.txt<\/code><\/p>\n<p>Write out the above command into the terminal and press the <strong>Enter\u00a0<\/strong>key to execute it. Once the <strong>Enter\u00a0<\/strong>key is pressed, the Lynx web browser will generate a list of links for all Ubuntu kernel packages stored in <code>kernel-packages.txt<\/code> in your home (~) directory.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396195 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/02\/kernel-download-manual-fs8.png\" alt=\"\" width=\"1201\" height=\"549\" srcset=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/02\/kernel-download-manual-fs8.png 1201w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-9.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-11.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-12.png 768w\" sizes=\"(max-width: 1201px) 100vw, 1201px\"\/><\/p>\n<p><strong>Step 7:<\/strong> Lynx has generated a list of links for the Ubuntu kernel version you wish to install. It\u2019s now time to download the packages. Using the\u00a0<strong>wget\u00a0<\/strong>command, grab all of the kernel packages listed in the <code>kernel-packages.txt<\/code> file.<\/p>\n<pre>\nwget -i ~\/kernel-packages.txt\n<\/pre>\n<p><strong>Step 8:<\/strong> Once all packages are done downloading to your Ubuntu PC, you can install them, thus updating the Ubuntu kernel to a newer version than what is provided in the Ubuntu repos.<\/p>\n<pre>\nsudo dpkg -i linux-*.deb\n<\/pre>\n<p><strong>Step 9:<\/strong> Reboot your Ubuntu PC. When your Ubuntu PC finishes rebooting, you\u2019ll have access to the new kernel you\u2019ve installed! Enjoy your updated Ubuntu kernel!<\/p>\n<h2>Ubuntu: update kernel \u2013 Mainline<\/h2>\n<p>If downloading the Linux kernel packages via the Ubuntu developer website isn\u2019t your thing, you\u2019ll want to check out Mainline. It can update Ubuntu\u2019s kernel to a new version with a slick user interface.<\/p>\n<p>To get started, you\u2019ll need to install the Mainline application. To install it, open up a terminal window and use the\u00a0<strong>add-apt-repository\u00a0<\/strong>command below to get the program working.\u00a0<\/p>\n<pre>\nsudo add-apt-repository ppa:cappelikan\/ppa\n<\/pre>\n<p>After adding the PPA, you will need to execute the <strong>update\u00a0<\/strong>command. This command will refresh Ubuntu\u2019s software sources and make the new PPA accessible.<\/p>\n<pre>\nsudo apt update\n<\/pre>\n<p>Following the update, install the Mainline app using the\u00a0<strong>apt install\u00a0<\/strong>command below.<\/p>\n<pre>\nsudo apt install mainline\n<\/pre>\n<p>Once Mainline is installed, search for \u201cMainline\u201d in your app menu, and open it. When the app is open, look through the Ubuntu kernels list and select the one you wish to install with the mouse. Then, select the \u201cInstall\u201d button to continue.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396196 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide.png\" alt=\"\" width=\"1200\" height=\"656\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-3.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-5.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-update-kernel-guide-7.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>After clicking on the \u201cInstall\u201d button, Mainline will download and install the new Ubuntu kernel version. When the process is complete, close the program and reboot your PC.<\/p>\n<p>Upon logging back in, you\u2019ll be using a newly updated Ubuntu kernel!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles If you\u2019ve used Ubuntu long enough, you\u2019ll notice that the Linux kernel doesn\u2019t often get updated to a new release. Usually, the Ubuntu developers push out point releases until the next new Ubuntu release. This guide will go over how you can update the Ubuntu kernel manually by downloading developer kernel packages. We\u2019ll &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1699,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1698"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1698"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1698\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1699"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}