-
Notifications
You must be signed in to change notification settings - Fork 847
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
WslRegisterDistribution failed with error: 0x8000000d An illegal state change was requested. #4084
Comments
i got the same problem |
If you uninstall the Ubuntu app and then reinstall it do you get the same error? And if you do, you can always try and verify and repair your disk image by running the following command in a command prompt window with admin privileges:
If neither of those solutions work for you let me know and we can troubleshoot further! |
Is it possible that you launched the Ubuntu application twice? Can you share the output of wslconfig.exe /list /all? |
|
|
Hi @gee-gv please open a separate issue for the error you're experiencing above with some reproducible steps so we can take a look at it! |
`Installing, this may take a few minutes... Press any key to continue...` my issue after reboot it resolved |
maybe my problem is caused by this, then, how to clean the ubuntu in the first installation wslconfig.exe /l /a |
it's resolved now, maybe wslconfig /t |
@minorcong depending on your Windows version (works in 18362 and higher) you can run this command to remove a distribution easily:
If you're running a build that's earlier than 18362 you can use |
I am facing the same issues after uninstalling Ubuntu 18.4 in Windows 10 and trying to re-install it. I also tried to run all the commands suggested previously. But it doesn't work. When I run this: PS C:\WINDOWS\system32> wslconfig.exe /list /all I get this: W i n d o w s S u b s y s t e m f o r L i n u x D i s t r i b u t i o n s : U b u n t u Any idea why I still run in this error: Press any key to continue... |
Same here! |
I also have the same issue for Ubuntu 18.04. EDIT: Got it working I also ran "Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux" during the installation attempt, since I thought it is going to fail anyway, but it worked. Though, I still believe updating Windows was the solution for me. |
I solved the initial issue (after updating the Windows version to 1909), Ubuntu 18.04 gets stuck in Windows 10 (version 1909). It either fails to initiate, or consumes a lot of CPU and gets stuck. I have a pc, Asus, with Intel i5 (8th generation) and 8 GB of RAM. I have been using Ubuntu for year and had not faced any problem at all up to 4-5 days ago. Is anybody else running into a similar issues? |
TL;DR
Longer version: The most interesting thing about this for me is the following response:
So the "fix" mentioned above is actually a workaround for now. I provided a memory dump for them so hopefully they can figure this out and fix it. |
Wow. I have never seen such a precise and helpful reply, so first, let me thank you. Even more importantly, the solution you proposed seems to work (I have been using Ubuntu for about half an hour). Thank you so much @hsellik. To anyone out there running into the same issues, @hsellik's suggestion will avoid you a lot of frustration. :) |
|
@hsellik Thanks that worked for me to. |
I don't know what the problem was. |
Please collect WSL logs and post the backlink to the feedback item here. |
hi, I am encountering the same issue with an arch based distro ( https://github.com/yuk7/ArchWSL ) E:\Arch>Arch.exe
Using: E:\Arch\rootfs.tar.gz
Installing...
ERROR:Installation Failed!
HRESULT:0x8000000d
Press any key to continue... and when I want to list available distros: E:\Arch>wsl -l
Le sous-système Windows pour Linux n'a pas de distributions installées.
Vous pouvez installer les distributions en visitant le Microsoft Store :
https://aka.ms/wslstore french version of 'no distro installed' tried :
but nothing worked EDIT:the issue was that a failed installation of Debian messed up the windows registry, I had to manually clean it |
how did you clean the registry? I have the same problem here... And I had tried all the methods above... |
|
i try to search for something about "Ubuntu" in regedit then delete them manually, it worked! |
I got the same error after I installed the Ubuntu without turning on the required optional features in windows. |
When I faced this:I unregistered the Ubuntu-20.04 using How it worked out for me:
|
USE: |
Restarting the system fixed the issue for me. After restarting, I opened Ubuntu again and it continued the installation process and prompt username creation step |
Finally i have found the best solution... Sorted 2 solution those who need help dm🧞♂✨ |
✅1000000% working |
Some how, when i run into step 4, it keep show 0x8000000d ???????, then i do all the rest and
done! |
For me, --unregister command doesn't for kali wsl |
Check in Windows Security -> App & Browser Control -> Exploit Protection Settings: System Settings, Control Flow Guard (CFG): Program Settings, there should be entries for:
Both should have Control Flow Guard set to:
/* Enable Virtual Machine */ /* Enable Windows Subsystem for Linux */ /* Install WSL v2 */ /* Set Default Version */ PowerShell: |
Work for me. Thanks |
I tried to install wsl 2 on my old laptop, and encountered the problem above. |
works for me either! thanks! |
#9338 (comment) work for me |
wsl --install -d name of install system |
this helped me to fix it just |
For everyone who might have had the same problem that I did. It was docker using my WSL2. I uninstalled docker and it started working again. (You have to change the docker config so that it doesn't grab your WSL2 or else it acts funny like that.) |
for me it was because my uninstall of kali-linux didn't finish |
great ,it worked for me |
Thanks! |
|
With |
Microsoft is shit |
Hi folks this issue is quite old, and we have made lots of improvements in this area, so I'm closing this out for bookkeeping issues. If you're still seeing this issue please file a new issue so we can take a look. Thank you! |
Please use the following bug reporting template to help produce issues which are actionable and reproducible, including all command-line steps necessary to induce the failure condition. Please fill out all the fields! Issues with missing or incomplete issue templates will be closed.
If you have a feature request, please post to the UserVoice.
If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.
Important: Do not open GitHub issues for Windows crashes (BSODs) or security issues. Please direct all Windows crashes and security issues to [email protected]. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
Please fill out the below information:
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.18362.145]
I enabled the Windows Subsystem for Linux feature, rebooted, and then installed Ubuntu from the Microsoft Store. Upon launching Ubuntu, the following error message appeared:
I tried running wsl from a command prompt and it claimed no distribution was installed:
Ubuntu should have started successfully.
some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here).N/A
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: