WSL: WslRegisterDistribution failed with error: 0x8000000d An illegal state change was requested.
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 secure@microsoft.com. 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:
- Your Windows build number: (Type
verat a Windows Command Prompt)
Microsoft Windows [Version 10.0.18362.145]
- What you’re doing and what’s happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
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:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8000000d
Error: 0x8000000d An illegal state change was requested.
I tried running wsl from a command prompt and it claimed no distribution was installed:
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
- What’s wrong / what should be happening instead:
Ubuntu should have started successfully.
- Strace of the failing command, if applicable: (If
some_commandis failing, then runstrace -o some_command.strace -f some_command some_args, and link the contents ofsome_command.stracein a gist here).
N/A
- For WSL launch issues, please collect detailed logs.
See our contributing instructions for assistance.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 16
- Comments: 51 (5 by maintainers)
Check in Windows Security -> App & Browser Control -> Exploit Protection Settings:
System Settings, Control Flow Guard (CFG):
Use default (On)Program Settings, there should be entries for:
Both should have Control Flow Guard set to:
/* Enable Virtual Machine */ PowerShell:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart/* Enable Windows Subsystem for Linux */ PowerShell:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart/* Install WSL v2 */ Download
/* Set Default Version */ PowerShell:
wsl --set-default-version 2PowerShell:
wsl --unregister UbuntuPowerShell:wsl --install -d UbuntuUSE:
wslconfig.exe /u ubuntuThen open again!Is it possible that you launched the Ubuntu application twice? Can you share the output of wslconfig.exe /list /all?
`Installing, this may take a few minutes… WslRegisterDistribution failed with error: 0x8000000d Error: 0x8000000d ???
Press any key to continue…`
my issue
after reboot it resolved
@minorcong depending on your Windows version (works in 18362 and higher) you can run this command to remove a distribution easily:
wsl --unregister <Distroname>If you’re running a build that’s earlier than 18362 you can use
wslconfig /u <DistroName>Microsoft is shit
✅1000000% working For every error✅💯 ⚠️Follow my step carefully 1.Control panel → Program & features →🛡Turn windows features on or off → Now disable virtual machine platform, hypervisor platform, windows subsystem for linux →Ok →Restart now 2.uninstall Distro (kali,ubuntu,debian…),windows subsystem for linux update from 🛡uninstallor change a program 3.Now install kali from Microsoft store → Launch →Read the error msg in kali terminal it ask to enable subsystem platform →Control panel → Program & features →🛡Turn windows features on or off → Now enable subsystem platform only → ok → Restart now 4.Again open kali terminal →Notice an another error ask to enable virtaul machine platform →Control panel → Program & features →🛡Turn windows features on or off → Now enable virtual machine platform → Ok → Restart now 5.Open kali terminal →New error request to update wsl2 kernel →Install it https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi 6.Now close and Open the kali terminal wait for a long Request to create username:💯💯💯💯💯
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:
DISM /Online /Cleanup-Image /CheckHealthIf neither of those solutions work for you let me know and we can troubleshoot further!
Work for me. Thanks
wsl --installwsl --install -d Ubuntu-20.04//any of the listPreview:
Result:
I don’t know what the problem was. But for me, it’s solved by running ubuntu terminal as administrator.
@oltip
TL;DR
Longer version: I think it’s experienced by quite some people, but there seems to be an accepted solution provided here https://github.com/microsoft/WSL/issues/4936#issuecomment-595951087 .
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.
i try to search for something about “Ubuntu” in regedit then delete them manually, it worked!
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
When I faced this:
I unregistered the Ubuntu-20.04 using
wsl --unregister Ubuntu-20.04and then uninstalled it from windows apps, when I then installed it again usingwsl --install Ubuntu-20.04, it was downloaded while it was installing, I faced this problem. Then I tried to check the available distros in my system usingwsl -lbut i didn’t find it, just installed Ubuntu-20.04 there.How it worked out for me:
this helped me to fix it just wsl --list --all wsl --unregister <DistributionName> then try kali it will work hope this helps
Some how, when i run into step 4, it keep show 0x8000000d ???, then i do all the rest and
done!
how did you clean the registry? I have the same problem here… And I had tried all the methods above…
hi, I am encountering the same issue with an arch based distro ( https://github.com/yuk7/ArchWSL )
and when I want to list available distros:
french version of ‘no distro installed’
tried :
turn windows features on or offmenubut nothing worked ( I am using windows 19041.746 )
EDIT:
the issue was that a failed installation of Debian messed up the windows registry, I had to manually clean it now it works just fine
I also have the same issue for Ubuntu 18.04.
EDIT: Got it working In my case, I updated Windows from 1903 to 1909.
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.