-
Notifications
You must be signed in to change notification settings - Fork 823
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
Ubuntu installation stuck on WSL (Windows 10 Pro Insider Preview) #6405
Comments
That command needs a parameter, it would look like
If either of those fail or hang, please collect WSL logs and post the backlink to the feedback item here. You don't need to let it run for hours while collecting the logs, just 30 seconds or so will do, then close the window. |
Hello, I tried to wsl.exe --install -d ubuntu, nothing happen only show --help list Already version 2 |
The |
I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password |
weird but its actually worked 😂 |
Had the same issue and this solved it. I am running Windows 10 Pro version 21H1. |
Confirmed this. I guess it because restart needed after installing WSL before installing distro |
9/23/2022, this is still the best solution |
enable VM in BIOS |
Thank you very for your support. Please can you help with the procedures to
follow because I am just seeing different things on Google.
|
you don't know how to log in to bios? |
Please I don't know.
|
Have same trouble. Tried install Ubunty and debian, each time cmd window opens, says "Installing, this may take a few minutes" for several hours.
Here is logs taken with recommended tool from MS |
Thank you!
|
UPD It seems that vmcompute.exe must be strictly Code flow guard (CFG) enabled, otherwise it will not work. Here is reproduce of workaround
|
It worked.
|
It works! saved my day!!!! |
Awesome, thanks!
|
This just makes me quit the install |
yup, same for me. what worked for me is running, source: #9390 (comment) |
Had a similar issue. |
Awesome, thanks! I have it resolved now.
|
Finally! The only solution that worked for me. But it took several hours to find him. |
Unfortunately doesn't work for me, always hangs on installing, checked same as @shtormish Check bios settings -- all VT functions checked |
If i set WSL to version 1 it actually works |
Or run PowerShell as an admin and use: Set-ProcessMitigation -Name vmcompute.exe -Enable CFG no reboot required |
This is the only thing that worked for me. (Windows 10, WSL2) |
Open PowerShell as an Admin then run
I had the same issue by trying to run Ubuntu by clicking on the icon... |
@shtormish you saved my day! It worked for me. Now I am able to install Ubuntu and Debian distros. |
This isn't working for me, I have virtualisation enabled in BIOS, I did as @shtormish suggested but progress doesn't go past 3.0%. Before doing as prescribed it didn't go past 2.0%, so it is still a +50% improvement Edit: the installation is just painfully slow. I left it installing overnight and after 9.5 hours it's at 62%, so it is working just that it's going to take 15 hours total. I can't think of anything that would causing it to be that slow, internet is fast, the drive it's downloading to is fast, and CPU is fast. |
@kaiwizz Thank you! It works |
Thank you. this worked for me. The |
2023/12/12 - still works like a charm |
You wonderful human being. I hope only the best things in life happen to you. |
Confirming this works form me as well (Win10, 22H2), thanks a lot! Just to note, "Override system settings" was already checked (as well as "On" and "User strict CFG"), but after unchecking and checking again, clicking Apply, and restarting I was finally able to install via |
The solution for me was:
|
Incredible that this worked. |
Thanks a lot, 3 hours I am searching the solution !!! Thanks bro :p |
I had this issue and resolved it by specifying the distro explicitly. I had previously used WSL on this machine.
|
This actually worked for me. It's wild, how enabling exploit protection can solve an issue insted of creating one. :O |
##This worked. You saved my life |
Could anyone somehow pin this? or actually author @djrranga of this post could edit his issue description with the workaround? :) |
I encountered this problem on Win11 24H2 LTSC, using your method it work! thanks! |
Done! Surprised this is still open 3 years later ;) |
I was just trying to install WSL today and have the same issue with Ubuntu-22.04 or Ubuntu-24.04 distro. But when I switch to wsl 2 |
Environment
Steps to reproduce
wsl --install
WSL logs:
Expected behavior
Ubuntu should install and ask me to configure my user account.
Actual behavior
Hangs on "installing" with no errors.
Edit 2024: Workarounds
Workaround 1 @sparcbr
Workaround 2 @shtormish
The text was updated successfully, but these errors were encountered: