{"id":43586,"date":"2023-01-17T16:52:19","date_gmt":"2023-01-17T16:52:19","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43586"},"modified":"2023-01-17T16:52:19","modified_gmt":"2023-01-17T16:52:19","slug":"kernel-6-1-install-ubuntu-2204","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/01\/kernel-6-1-install-ubuntu-2204\/","title":{"rendered":"Kernel 6.1 (6.1.6) Available to Install in Ubuntu 22.04 via Mainline PPA"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-35489\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>For those who want to try out the latest Linux Kernel 6.1.x, the Mainline Kernel PPA finally works again.<\/p>\n<p>Ubuntu developer team maintains the <a href=\"https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/\" target=\"_blank\" rel=\"noopener\">Mainline Kernel PPA<\/a> with latest Kernel packages. It however failed to build for all the Kernel releases since v6.0.10.<\/p>\n<p>After more than a month until the release of Kernel 6.1.4, the maintainers finally fixed the issue and built the kernel packages correctly for Ubuntu 22.04 +.<\/p>\n<h3>How to Install Kernel 6.1.x in Ubuntu 22.04<\/h3>\n<p><b>NOTE: Mainline Kernels are built for testing purpose! They are not supported and are not appropriate for production use. Use them at your own risk<\/b><\/p>\n<p>Unlike normal Ubuntu PPAs, there&#8217;s no need to add the Mainline PPA into system repository. Just download the <code>.deb<\/code> packages from the repository page and install them.<\/p>\n<p>1. At the moment of writing, the latest version is Kernel 6.1.6, available to download at the link below. For other versions, go to <a href=\"https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/\" target=\"_blank\" rel=\"noopener\">this page<\/a>.<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v6.1.6\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download Kernel 6.1.6<\/a><\/div>\n<\/div>\n<p>For modern 64-bit computer\/laptop, select download the top 4 <code>amd64\/build<\/code> packages. For <code>arm64<\/code> devices, download the 3 of next 6 packages (either with or without <code>64k<\/code>). There are as well the packages for armhf, ppc64el, and s390x available to download.<\/p>\n<p>Or, user can run commands below one by one in terminal to download the packages (64-bit only):<\/p>\n<pre>wget -c https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v6.1.6\/amd64\/linux-headers-6.1.6-060106-generic_6.1.6-060106.202301141035_amd64.deb\r\n\r\nwget -c https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v6.1.6\/amd64\/linux-headers-6.1.6-060106_6.1.6-060106.202301141035_all.deb\r\n\r\nwget -c https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v6.1.6\/amd64\/linux-image-unsigned-6.1.6-060106-generic_6.1.6-060106.202301141035_amd64.deb\r\n\r\nwget -c https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v6.1.6\/amd64\/linux-image-unsigned-6.1.6-060106-generic_6.1.6-060106.202301141035_amd64.deb<\/pre>\n<p>2. After downloading the packages, install them via <code>apt<\/code> command. <\/p>\n<p>If you downloaded the packages via web browser link, you may first open the Downloads folder in file manager. Then, right-click on blank area and select &#8220;Open in Terminal&#8221; first to open that folder as working directory in terminal.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/kernel-downloads.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/kernel-downloads-600x321.webp\" alt=\"\" width=\"600\" height=\"321\" class=\"aligncenter size-large wp-image-43587\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/kernel-downloads-600x321.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/kernel-downloads-300x161.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/kernel-downloads-768x411.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/kernel-downloads.webp 953w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally, run command to install all <code>.deb<\/code> packages in the folder:<\/p>\n<pre>sudo apt install .\/*.deb<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/apt-kernel616.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/apt-kernel616-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"aligncenter size-large wp-image-43588\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/apt-kernel616-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/apt-kernel616-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/apt-kernel616-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/apt-kernel616.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. When done, restart your machine and verify your kernel via command:<\/p>\n<pre>uname -a<\/pre>\n<p><b>NOTE: Mainline Kernels are not signed. You may need to disable Secure Boot in BIOS to make it work.<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/verify-kernel616.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/verify-kernel616-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"aligncenter size-large wp-image-43589\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/verify-kernel616-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/verify-kernel616-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/verify-kernel616-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/01\/verify-kernel616.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Uninstall Kernel 6.1.x<\/h3>\n<p>For any reason, you can easily remove the Kernel by doing following steps.<\/p>\n<p>1. Firstly, reboot and select the old Kernel in boot menu under &#8220;Advanced Options for Ubuntu&#8221;.<\/p>\n<p>2. Open terminal (Ctrl+Alt+T), and run command to remove Kernel you just installed (change version number accordingly):<\/p>\n<pre>sudo apt remove --autoremove linux-modules-6.1.6-060106-generic linux-headers-6.1.6-060106<\/pre>\n<p>Tip: you may type <code>linux-modules-6<\/code> and hit <b>Tab<\/b> key to auto-complete the package name. Also type <code>linux-headers-6<\/code> and hit <b>Tab<\/b> for the second.<\/p>","protected":false},"excerpt":{"rendered":"<p>For those who want to try out the latest Linux Kernel 6.1.x, the Mainline Kernel PPA finally works again. Ubuntu developer team maintains the Mainline Kernel PPA with latest Kernel packages. It however failed to build for all the Kernel releases since v6.0.10. After more than a month until the release of Kernel 6.1.4, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":35489,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[160],"class_list":["post-43586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-kernel"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=43586"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43586\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/35489"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}