-
Notifications
You must be signed in to change notification settings - Fork 831
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
Cannot get WSL2 to install #5964
Comments
You may need to provide more detail of error or issue. Let me tell you how I got it working. I was following this procedure, but got many issues. Finally got it working. Steps,
Installing, this may take a few minutes... Press any key to continue...
1, Open "Windows Security" Then go back to powershell wsl --set-default-version 2
PS C:\WINDOWS\system32> wsl -l -v
PS C:\WINDOWS\system32> wsl -l -v
PS C:\WINDOWS\system32> wsl -l -v Note : I got lot of other errors before and tried lot of different methods. But this one was from scratch, so it should be working for you. Note 2 : I have just install all these distro, not worked on them yet. So yet to find out about the bugs or issues inside them. |
Appreciate the feedback. I was finally able to get it working by updating W10 to the 2004 (Sep 2020) version, then installing the WSL2 standalone MSI. Oh, and a restart is required. Then using the distro that I have installed, Ubuntu LTS, I was able to set the WSL version and verify in the listing. Edit: The trick with the MSI, does not prompt you with any clues that a restart might actually be required. Until you do, you cannot set the WSL version. |
@HiteshDhola Thank you so much! I was facing similar issues an your Step 7 "Resolution" did the job for me. |
@HiteshDhola Thank you so much! |
Why dose this not work from installing from the Windows 11 store, all optional features should be added, it seems running VMware Workstation is alot easier or Virtual Box, why have to jump though a load of hoops to get it to work is silly and should not be necessary, it should be a one click and go. |
Because, IMO, in my estimation, AFAIK, it is based on an actual Windows kernel mode operation. If I understand how it works, they are actually updating the Windows kernel(s) itself with a native Linux-inside kernel. Which, if I understand it correctly, does not deploy out of the box. From my lay technical background. Could be wrong. Perhaps someone closer to the metal could clarify and/or elaborate. |
@HiteshDhola Hello, I encountered the same question as you and followed your tips until "net start vmcompute", but the shell returns an error "server name is not valid", how should it be solved? thank you. |
Running Windows 10 Pro x64, v2004 OS build 19041.508. Prior I was in the correct v1909, I think, and correct major OS build, but the minor was down from the 14xx or whatever that has been indicated in other blogs.
So, what am I missing, how can I get WSL2 to install?
The text was updated successfully, but these errors were encountered: