WSL: Catastophic failure when I try to install WSL2
Version
Microsoft Windows [Version 10.0.19045.2364]
WSL Version
- WSL 2
- WSL 1
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:
PS C:\Windows\system32> wsl --install
Installing: Windows Subsystem for Linux
Catastrophic failure
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 9
- Comments: 37
Tested on Windows 10 Pro.
@thehairy, ok, now try this:
%windir%\system32\cmd.exe) running as admin, run:%windir%\system32\cmd.exe) not running as admin, run the following. It will have some pop-up windows requiring your admin username and password during the install, but the Cmd Prompt should not be in admin mode:This is the shorter and clearer version of what’s already in my comment you quoted.
Does this work for you?
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
Tested on Windows 10 Pro.
Update…clearer instructions in my new comment here:
actually…you must run
netsh winsock resetfirst, as admin, as @sebastianangermund says. Only then do my instructions below apply.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:
If you get the
Catastrophic failureerror, you probably mistakenly ran the command prompt or power shell as a local admin.Thanks to this comment, I resolved the problem. (https://stackoverflow.com/a/78004733) I summarized a detailed procedure for this solution.
Steps:
cd Downloadsmsiexec /package wsl.2.2.2.0.x64.msiwsl --versionThis approach does not require
wsl --installcommand, so it avoids Catastrophic failureThis
This solution worked for me. Followed the step exactly!! thank you very much
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?
@paiam-de this thread helped me https://github.com/microsoft/WSL/issues/8662, especially running
netsh winsock resetand rebooting. hope it helps you tooThis 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
wsl --updateas well as successfully install distributions that I couldn’t before (got error 0x8000ffff).I had the same problem, I managed to solve it this way.
wsl --update --web-downloadwsl --installGlad 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 has worked, thanks.
This worked for me, thanks a lot was stuck on this for a whole day
I just encountered this as well, the problem for me was no network connection (obviously you need a connection to install updates 🤦♂️)
Thank you so much. I started a windows powershell with my normal user, not my admin user and it works
This shit is broken as hell.
Thats unfortnuately not the case. Ran it as a normal user and after running the installation it asked for admin credentials -> Critical failure
Install the laterst version from
https://github.com/microsoft/WSL/releases
This solves all your problems!
sharing my experience current windows build 10.0.26100 N/A Build 26100
running
netsh winsock resetdidn’t helpwhat I did was enabled the local Administrator account and login as Administrator then execute
wsl --installand it workIs it possible you are already a local admin 🤔?
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 😃
I ran into catastrophic failure error and solved as per https://stackoverflow.com/a/78004733/598353
I did the same thing got catastrophic thing but then in an administrative shell, unregistered ubuntu first with
wsl --unregister ubuntuand then installed it again withwsl --install. Now it worked perfectly.