Score:7

22.04 LTS (Jammy Jellyfish): How to install Linux 6.1 LTS

pt flag

How does one install the latest LTS kernel on Ubuntu 22.04 LTS (Jammy Jellyfish)?

I should note I've got a 12th Gen Intel Core i7-12800H with an integrated (Intel Alder Lake-P Integrated Graphics) and a NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]. I'm hoping the upgrade to Linux 6.1 LTS won't effect me being able to use the NVIDIA GPU.

Dubu avatar
ua flag
The way you ask your question looks like you might expect that any LTS kernel somehow should run on any LTS Ubuntu. But the software development life cycles of Ubuntu and the Linux kernel are not synchronized, and LTS just means "Long Term Support", not a special edition for Ubuntu LTS. A certain Ubuntu release (LTS or not) is designed to work with a certain kernel (major) version and it is reasonable for an LTS Ubuntu release to depend on an LTS kernel version so that security updates are ensured for the longer support period of that release. That's all.
cn flag
@Dubu historically several LTS ubuntu releases shipped with non-LTS kernels, and the Ubuntu Security Team keeps patching the EOL kernels after the upstream kernel developers stop doing it.
Mahler avatar
in flag
Is the 6.1 LTS kernel? It is not 'longterm' on the kernel.org site.
cm flag
@Dubu on the contary Ubuntu frequently ships multiple different kernel versions for a given release. It looks to me like Ubuntu 22.04 is currently shipping five different kernels, a base kernel (5.15), a HWE kernel (5.19) and three different OEM kernels (5.17, 6.0 and 6.1). I'm not sure to what extent each kernel is supported though.
Score:17
pl flag

Can you? Yes. Should you? Perhaps not.

But it's your system, so you're able to break it and get to keep the pieces.

The Canonical Kernel Team maintain (but importantly do not support) builds of upstream kernels, including 6.1 and newer. You can find a wiki page all about it along with the stark warning:

These kernels are not supported and are not appropriate for production use. Additionally, these kernels do not receive any security updates, therefore if you install them manually via the Mainline PPA, you will never receive a security update or patch for that version.

That said, the page details how to get the kernel, and manually install it.

There's also a handy third-party script I sometimes use to get newer kernels which also has a warning:

⚠️ Use this script at your own risk. Be aware that the kernels installed by this script are unsupported

Do not use this script if you don't have to or don't know what you are doing. You won't be covered by any security guarantees. The intended purpose by Ubuntu for the mainline ppa kernels is for debugging issues.

We strongly advise to keep the default Ubuntu kernel installed as there is no safeguard that at least one kernel is installed on your system.

So now you know how, and where to get them, but it's up to you whether you do it.

cn flag
Over time, newer kernels will be available with LTS releases, see https://ubuntu.com/about/release-cycle#ubuntu-kernel-release-cycle
Score:9
cn flag

Kernel 6.1 is currently in testing (lunar-proposed), and is expected to be in Ubuntu 23.04, to be released in two months. After it migrates from -proposed to main, you can test the 6.1 kernel on your hardware with a plain old 23.04 LiveUSB without installing anything.

Since you specifically asked about bolting that 6.1 kernel onto Ubuntu 22.04 LTS (not 23.04), the kernel in 23.04 will also be in the next HWE kernel update for 22.04 LTS, usually about 3-4 months later (early August 2023).

  • Keep in mind that LTS kernels are not designed or intended to be cutting-edge. Haywiring newer software onto older LTS systems is often a recipe for disaster. For newer hardware compatibility, newer software, and newer features, consider trying the 6-month releases of Ubuntu instead of LTS.
us flag
Seems that to wait a little is the easiest solution. A dist-upgrade with Ubuntu 22.04.2 LTS recently installed kernel 6.1.0-1015-oem on my system (last week). However I'm not sure if it was supposed to happen yet. It needed an additional `sudo dkms autoinstall` to make Nvidia drivers and Virtualbox work again.
br flag
My 22.04 has just updated to 6.2 kernel now.
Score:7
cm flag

While there is certainly some relation between upstream status and status within particular distros, it's not a rigid relationship. The base kernel for a Ubuntu LTS release is normally a LTS kernel series , but not every LTS kernel series is adopted by Ubuntu. Furthermore Ubuntu may not support each kernel for as long as upstream does.

Ubuntu has multiple kernel lines for LTS releases. As I understand it.

  • The "base" kernel. This is the kernel release series included with the LTS release from the start and is supported for the full lifecycle of the release.
  • The "hardware enablement" kernel. This is a backported kernel from a later Ubuntu release, included to better support new hardware. The precise model for HWE kernels has varied over the years, but the current model is that the kernels from the next four releases are backported and each HWE kernel is supported until the next one is backported. In particular this means that the final HWE kernel for a given lts release is the base kernel for the next lts release.
  • "OEM" kernels, these are added to support the needs of Canonicals OEM partners and can be even newer than the hardware enablement kernels. OEM kernels are maintained until the required functionality is included in a HWE kernel.

As user535733 points out, 6.1 is currently the base kernel for Ubuntu 23.04. It will likely be included in 22.04 as a HWE kernel in the future but that could till be some way off.

However it is already available in 22.04 as an OEM kernel. You can install it by doing

apt-get install linux-oem-22.04c

It is extremely unlikely however that Ubuntu will support 6.1 in the long term. Users of the OEM kernel mentioned above will likely be rolled on to a 6.1 based HWE kernel and then onto HWE kernels based on whatever kernel version is the base version in 23.10 and 24.04.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.