Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable WSL 2: 'WSL 2 requires an update to its kernel component' after kernel update MSI installed #5941

Closed
moditpro365 opened this issue Sep 17, 2020 · 2 comments

Comments

@moditpro365
Copy link

Environment

Win 10 - 10.0.19624.0

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
Whether the issue is on WSL 2 and/or WSL 1: [run `cat /proc/version` in WSL]

Steps to reproduce

I've followed the instructions to enable WSL, VM components, reboot, run MSI. MSI installs without error, but installs quickly and without elevation prompts as mentioned in the article. Go to set WSL 2 as default and get 'WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.'

Folowing: https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-4---download-the-linux-kernel-update-package

WSL logs:

Expected behavior

Actual behavior

PS C:\> wsl --set-default-version 2 WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel For information on key differences with WSL 2 please visit https://aka.ms/wsl2

@licanhua
Copy link
Collaborator

most likely, the elevation prompts is blocked by UAC.

  1. Download the kernel to a fold like c:\temp which doesn't include space
  2. start cmd.exe with admin permission, and goto above folder.
  3. msiexec /i "wsl_update_x64.msi

@moditpro365
Copy link
Author

Thanks, @licanhua but I ended up wiping the OS. All is good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants