New Kernel Won't Load #8989
-
Version10.0.22000.1042 WSL Version
Kernel VersionKernel version: 5.10.102.1 Distro VersionUbuntu 22.04 Other SoftwareNo response Imagesok, let's restart: Repro Steps
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
@gaia how did you install the new kernel, deb package or custom build? It is not recommended to install kernels in a WSL instance. It's just a container. |
Beta Was this translation helpful? Give feedback.
-
Also @gaia, there are some formatting issues with your post (images inside code-block, etc.). Would recommend fixing these to make it easier to read. But definitely agree with @zcobol -- This appears to be working as intended. You cannot update the kernel from within a distribution; it has to be done for all of WSL2. Please see the config doc for information on how to use a different kernel with WSL2, but also realize that you'll need to make sure that the kernel that you are running has all of the necessary features included (Hyper-V, 9P support, and more). The best way to ensure this is by starting from the WSL2 kernel sources. |
Beta Was this translation helpful? Give feedback.
-
I believe it came with A question remains: I've always used |
Beta Was this translation helpful? Give feedback.
-
The other Q is, how do I make use of https://github.com/microsoft/WSL2-Linux-Kernel/releases/tag/rolling-lts%2Fwsl%2F5.15.68.1? Do I need to install Ubuntu again? |
Beta Was this translation helpful? Give feedback.
-
I can't claim to be an Apt expert, but I'm guessing that some other package that you installed may have specified the kernel as a dependency? I just did a In general, I'd recommend just a
That one's pretty easy. Since you are running Windows 11, you can install WSL 0.68.4, the latest pre-release that includes that kernel. To do so:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, @NotTheDr01ds. For others that find this, note that (you might want to update your post)
Lastly, just out of curiosity, the output of --status changed considerably after installing the kernel |
Beta Was this translation helpful? Give feedback.
-
Good catch - Typo on my part.
Not a typo -- It really should be After installing 0.68.4, the results should be something like:
|
Beta Was this translation helpful? Give feedback.
I can't claim to be an Apt expert, but I'm guessing that some other package that you installed may have specified the kernel as a dependency? I just did a
sudo apt --with-new-pkgs upgrade
on my (fairly) freshly installed 22.04 instance and didn't get a kernel with it.In general, I'd recommend just a
sudo apt upgrade
unless you see a held-back package that you know you need and should install.That one's pretty easy…