Score:0

Can I use a kernel from a newer version of Ubuntu in an older version?

nl flag
JM0

I have a computer with hardware not supported by the kernel in Ubuntu 18.04. Ubuntu 20.04, however, recently got a kernel that does support it. I took the following kernel packages from 20.04, installed them on 18.04, and everything appears to be working just fine.

  • linux-image-5.11.0-27-generic
  • linux-modules-5.11.0-27-generic
  • linux-modules-extra-5.11.0-27-generic

The hardware that was previously undetected is now detected and functioning properly

I have a feeling that this should not have been so easy though. What could go wrong with a "kernel transplant" such as this? What should I be on the lookout for to indicate something is wrong?

Nmath avatar
ng flag
How did you install the new kernel?
guiverc avatar
cn flag
If you manually installed it; you've also taken the task of manually installing updates yourself into the future; but you weren't specific as to how you installed it (ie. what @Nmath asked). Also as that kernel isn't QA-tested with 18.04 in mind, you've taken on that responsibility yourself too.
JM0 avatar
nl flag
JM0
I used `apt-get download` to download the `.deb` files from a 20.04 instance and then copied them over to 18.04 and installed them with `apt install ./*.deb`. I am aware of the responsibility as this is for a custom Linux distro that is manually managed anyway.
Score:2
in flag

The Ubuntu HWE kernel packages are for exactly this purpose. It is also possible to get prepackaged kernels that are even newer than these.

The HWE kernels do not have any significant negative impacts. The biggest penalty for a non-distribution kernel is that it may not have gotten as much testing, and updates to it will occur outside of the distribution's update cycle, so you won't get updates unless you do it yourself. This could have security implications.

JM0 avatar
nl flag
JM0
Unfortunately the HWE kernel available in 18.04 does not support the hardware I have. The 20.04 HWE kernel just recently did get support which led to this experiment.
user10489 avatar
in flag
If I'm not mistaken the "20.04 HWE" kernel is actually available in the Ubuntu 18.04 repos, and is the newest "supported" kernel in ubuntu. (At least, until there is a newer one.)
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.