-
Notifications
You must be signed in to change notification settings - Fork 858
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
Can't Install WSL due to 0x80040302 error #12595
Comments
View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
Diagnostic information
|
The solution mentioned in those issues didn't work. |
Thank you for reporting this @ColderCube. This is an interesting bug, but I can't reproduce the issue unfortunately. Let's a capture a TDD trace of wslservice so I can see what's happening in there. Can you please:
|
My wsl2 is broken too. Using wsl --update has no effect and only keeps giving me the same error message. I downloaded and installed it manually from https://github.com/microsoft/WSL/releases/tag/2.4.11, and wsl can be used normally (There will be error messages during installation, just click ignore). |
I tried upgrading my working Ubuntu 20.04 to 24.04 and broke the distro. Uninstalled, reinstalled Ubuntu 24.04 LTS (from Microsoft Store) to start with a fresh copy. Always ends up in the same error upon initial start: Installing, this may take a few minutes... Installing Ubuntu with --install command fails differently after downloading and installing 100%:
wsl -l -v shows no distros. OS: Windows 11 upgraded from Windows 10 last week. WSL was installed in 10 and still working on 11. |
Thank you @ColderCube. I was able to understand the root cause of the error you're seeing in the trace. Essentially you have a "leftover" default distribution set in the registry, which causes WSL to fail when trying to set the debian as the new default. If you delete the following registry value: The installation should succeed. (I will go fix the logic in WSL itself so this issue doesn't break installations anymore). |
Yes, confirmed workaround. Thanks! |
Windows Version
Microsoft Windows [Version 10.0.26100.3194]
WSL Version
2.4.11.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Debian
Other Software
No response
Repro Steps
wsl --install -d Debian or wsl --install -d Debian --no-launch
It happens with Ubuntu, Ubuntu-22.04, Ubuntu-24.04, ArchWSL.
Expected Behavior
It should have installed the Debian Distro.
Actual Behavior
Diagnostic Logs
WslLogs-2025-02-17_19-03-30.zip
The text was updated successfully, but these errors were encountered: