What is meant by the "Ubuntu kernel"? [duplicate]

My thinking was that all Linux distributions used one kernel (the one developed by Linus Torvalds).

So why do all Linux distributions have their own kernel?


There is a project, started and headed by Linus Torvalds, that maintains the source code for a kernel called the Linux kernel. This is what's distributed at kernel.org. Note that this is not a kernel, it's source code — in the same way that a recipe for a cake is not itself a cake.

To make a cake, you have to follow the recipe step by step, mix ingredients, and bake. To make a kernel, you have to configure the source code for your computer and compile it. Depending on your target architecture and the configuration you choose (and there are a lot of configuration options), you wind up with different kernels. Not wildly different, but different.

Further, the Linux kernel project is open-source. It's allowed and encouraged for everyone to get their own copy of the source code, to modify it for their own use, and to distribute their own modified copy — much like you may have inherited your grandma's cake recipe that she adapted from an old cookbook, and you may have your own personal variations.

While most people aren't hacking on their own personal version of the kernel source code, distribution projects like Ubuntu, Fedora, Slackware, etc., distribute their own modified versions of the Linux kernel. Often, the modifications are simple: backported bug fixes from more recent versions of the “upstream” kernel and security fixes that haven't made it into the upstream kernel yet. But they can be whatever the distribution project thinks would make their version “better,” for that project's definition of “better.”

So that's why we talk about the “Ubuntu kernel” as something separate from the “Linux kernel” — because it really is different. The Ubuntu kernel is maintained by Canonical. It's built on the Debian kernel, which is itself a distribution of the Linux kernel. I don't know all the differences between the Ubuntu kernel and the Linux kernel. (Not because it's secret, but because I'm just not aware.) I think this page lists a bunch, and here are the patches for the Debian kernel.

In the end, all the kernels are basically the same, and that's why we talk about them all as Linux. It's in no one's interest to change their kernel so much that it's wildly incompatible. Distributions differ much more in the variety of programs that they distribute along with their kernel to create an entire operating system.


Somewhat oversimplified:

There is one Linux Kernel, but development is ongoing. If you take snapshots several weeks apart, you will find slight differences.

Different Linux distributions take their snapshots at different times, and each has the option to add their own secret sauce. More slight differences.


When you visit kernel.org, you'll see that there are several different kernel versions.

In short they are:

  • Mainline: The development kernel Linus is maintaining.
  • Stable: The latest stable branch.
  • Longterm: Older kernel versions with backported security fixes.

Ubuntu kernels generally follow the same principle. When a version of Ubuntu is released, it generally sticks to the kernel version that was "stable" at the time of release (and then become "longterm" supported in that version of Ubuntu).

For instance, the 18.04 release (Bionic) is on the 4.15 kernel branch, and 20.04 (Focal) is on the 5.4 kernel branch.

Later in a release cycle, there might be "HWE" (hardware enablement) kernels available, which is on a newer branch (for instance Focal HWE is on the 5.8 branch). This is all part of the Ubuntu kernel ecosystem, to give more choices to its users.

In addition, there are different kernel builds for different platforms (cloud and barebone) - for instance Azure, AWS, KVM, Raspi, RiscV etc.

This (rather nerdy) mapping table show which Ubuntu kernels correspond to the mainline kernel versions. Different kernel packages can also be found on the Ubuntu package lists.