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 [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:
- 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.
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 /CheckHealth
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?
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Solution to the same problem on WoA10-1803 (on a Raspberry Pi3).
Uninstall 'Ubuntu 18.04', install Ubuntu App and then install Ubuntu 18.04. With the clock speed at 1.2GHz, WsL is now faster too...
The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease: Unknown error executing apt-key
How can one resolve this error?
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... WslRegisterDistribution failed with error: 0x8000000d Error: 0x8000000d ???????????
Press any key to continue...`
my issue
after reboot it resolved
Is it possible that you launched the Ubuntu application twice? Can you share the output of wslconfig.exe /list /all?
maybe my problem is caused by this, then, how to clean the ubuntu in the first installation
wslconfig.exe /l /a 适用于 Linux 的 Windows 子系统: Ubuntu-18.04
Is it possible that you launched the Ubuntu application twice? Can you share the output of wslconfig.exe /list /all?
maybe my problem is caused by this, then, how to clean the ubuntu in the first installation
wslconfig.exe /l /a 适用于 Linux 的 Windows 子系统: Ubuntu-18.04
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:
wsl --unregister <Distroname>
If you're running a build that's earlier than 18362 you can use wslconfig /u <DistroName>
I've uninstalled and reinstalled the Ubuntu 16.04 app and rebooted my computer but I keep getting the same error when trying to run it. And I only have one application running. So what do I try now?
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: Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8000000d Error: 0x8000000d An illegal state change was requested.
Press any key to continue...
Same here!
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.
I solved the initial issue (after updating the Windows version to 1909), but I am running into a new one.
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? Just to understand if it is a general issues or has to do with my personal pc.
@oltip
TL;DR
- Search for "Turn Windows features on of off" from start menu
- Enable "Virtual Machine Platform"
- Restart
- Hopefully this will solve it
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:
The Virtual Machine Platform feature should not affect WSL1 at all. Especially on 1903/1909 WSL should have no ties to that feature at all.
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. :)
@oltip
TL;DR
- Search for "Turn Windows features on of off" from start menu
- Enable "Virtual Machine Platform"
- Restart
- Hopefully this will solve it
Longer version: I think it's experienced by quite some people, but there seems to be an accepted solution provided here #4936 (comment) .
The most interesting thing about this for me is the following response:
The Virtual Machine Platform feature should not affect WSL1 at all. Especially on 1903/1909 WSL should have no ties to that feature at all.
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. @hsellik. it seams your suggestion working ... thank you so much
@hsellik Thanks that worked for me to.
I don't know what the problem was. But for me, it's solved by running ubuntu terminal as administrator.