-
Notifications
You must be signed in to change notification settings - Fork 805
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
Catastophic failure when I try to install WSL2 #9420
Comments
I realised the issue with me was a permission issue. It was because I was running PowerShell as a different user. I had to make my current logged in user an Admin and run it with that user. This solved the problem for me |
This worked for me as well - I would get this error on my non-admin user account even when running PowerShell as administrator. Fix: logged into the administrator account for my personal machine directly and was able to successfully |
Thank you so much. I started a windows powershell with my normal user, not my admin user and it works |
I'm facing this same issue using an organization's PC where I can't be made an admin. Is there any workaround for this? |
I just encountered this as well, the problem for me was no network connection (obviously you need a connection to install updates 🤦♂️) |
I have the same issue. In Powershell both as admin and normal user. And I have a working network connection. Any ideas? |
hey did you fix that? i do have you problem to. |
Tested on Windows 10 Pro. Update...clearer instructions in my new comment here:
Same here. The solution for me was to not run the cmd prompt as an admin. Then, when I run the following commands, a window will pop up at some point which asks for my admin username and password. At that point, I use my local admin account, and it works just fine. Again, do not run cmd prompt as an admin. Run it as a normal user: # Update your WSL system
wsl --update
# Install the latest version of Ubuntu
wsl --install If you get the |
Thats unfortnuately not the case. |
Tested on Windows 10 Pro. @thehairy, ok, now try this:
This is the shorter and clearer version of what's already in my comment you quoted. Does this work for you? |
This
This solution worked for me. Followed the step exactly!! thank you very much |
This worked for me, thanks a lot was stuck on this for a whole day |
after the catastrophic failure (it did show first a progress bar that went from 0% to 100%), running again
Microsoft Windows [Version 10.0.19045.3570]
|
I did the same thing got catastrophic thing but then in an administrative shell, unregistered ubuntu first with |
This has worked, thanks. |
@ElectricRCAircraftGuy could I confirm that the first operation after (This seems quite plausible given that the install command itself is |
I ran into catastrophic failure error and solved as per https://stackoverflow.com/a/78004733/598353 |
Worked for me perfectly! Thank you! You would think in a world where privileged access is becoming more controlled you would start out of the gate with admin privileges ... weird. Anyhoo, you saved me on this one :) |
Thanks for your instruction. But I didn't get a pop-up windows requiring my local admin username and password during step 3 and still have the "Catastophic failure". Any ideas? |
Is it possible you are already a local admin 🤔? |
I am in the same situation as the person asking the question. I'm logged in to Windows with my work email that doesn't have Admin rights, but I have a local admin account which I can run admin tasks with. I am sure I am using my work email user account. |
Guess what? I just managed to install Ubuntu through WSL in the VS Code. I just did connect WSL then the VS code starts to install Ubuntu. I don't know what magic happed. |
Glad to hear you got it working! I had to run the command 'wsl --set-default-version 2' and this fixed my issue on another computer when launching. Maybe it will help you.... ? There was a bit of magic to it on my end as well 😁 |
This solution really helped me |
Thanks to this comment, I resolved the problem. (https://stackoverflow.com/a/78004733) Steps:
This approach does not require |
Version
Microsoft Windows [Version 10.0.19045.2364]
WSL Version
Kernel Version
No response
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
I'm logged in to Windows with my work email that doesn't have Admin rights, but I have a local admin account which I can run admin tasks with. If I run PowerShell as as Administrator and run
wsl --install
Expected Behavior
It should install WSL2
Actual Behavior
It gives the output:
If I install Ubuntu from the Store, it will install Ubuntu with a WSL1 kernel, although
wsl -l -v
doesn't recognise that any distros are installed.
I have tried every combination I can think of uninstalling and reinstalling various components, I can't seem to get WSL2 to work,
Diagnostic Logs
WslLogs-2023-01-01_23-12-01.zip
The text was updated successfully, but these errors were encountered: