microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.47k stars 822 forks source link

WslRegisterDistribution failed with error: 0x8007000d #6592

Closed neoxeo closed 3 years ago

neoxeo commented 3 years ago

Environment

Windows build number: Microsoft Windows [version 10.0.20251.1] Your Distribution version: Ubuntu 20.04

Steps to reproduce

wsl --update Version du noyau : 5.4.72

wsl -l -o Voici la liste des distributions valides qui peuvent être installées. Installer à l’aide de « wsl--install-d  ».

NAME FRIENDLY NAME Ubuntu Ubuntu Debian Debian GNU/Linux kali-linux Kali Linux Rolling openSUSE-42 openSUSE Leap 42 SLES-12 SUSE Linux Enterprise Server v12 Ubuntu-16.04 Ubuntu 16.04 LTS Ubuntu-18.04 Ubuntu 18.04 LTS Ubuntu-20.04 Ubuntu 20.04 LTS

wsl -d Ubuntu-20.04 Il n’existe aucune distribution avec le nom fourni.

wsl --install -d Ubuntu-20.04 Ubuntu 20.04 LTS est déjà installé. Lancement de Ubuntu 20.04 LTS...

WslRegisterDistribution failed with error: 0x8007000d Error: 0x8007000d DonnÚes non valides.

Press any key to continue...

therealkenc commented 3 years ago

Please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking software that has been installed on Windows.

neoxeo commented 3 years ago

Logs posted on Hub. The only third-party networking software present is VPN (Surfshark) Here is the etl file get with "wpr -start wsl.wprp -filemode" wsl_0x8007000d.zip

neoxeo commented 3 years ago

I think I have found the problem. My Insider version was expired. I don't know why update didn't work. I have downloaded the last ISO of dev version and update. Now, wsl2 works fine. Can you add a check to verify Insider "expiry date" when wsl2 is installing or when wsl2 is "launched". I can't confirm at 100% that the problem come from to that but I think. Thanks.

heavyrick commented 3 years ago

How this problem was solved? I am facing the same situation. I thought docker was the problem, but then i realize it was something with wsl. I try everything: restarting, unistalling, checking / unchecking windows resources, cleaning processes, changing ubuntu 18 for 20... and i all got is this error when i start ubuntu.

I don't find anything usefull for this error WslRegisterDistribution failed with error: 0x8007000d image

Ragarnoy commented 3 years ago

Same issue, had code 0xFFFFFFFF at first, now I'm getting this one after resetting my distribution, and Nothing can fix it. What the hell.

juniormayhe commented 2 years ago

as windows terminal admin you run

wsl --install

when finished reboot.

Then Windows 11 shows a Ubuntu terminal window with this message:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007000d
Error: 0x8007000d The data is invalid.

Press any key to continue...

is there a restriction to install WSL in Windows 11 Pro Insider distro? I already switched to stable update (release) channels and Windows was supposed to be a regular distribution by now. But maybe there's a restriction to switch to older versions when we already got high version updates from the Dev channel. Anyway, I expected the WSL installation to work.

My version

Edition Windows 11 Pro Insider Preview
Version Dev
Installed on    ‎05/‎09/‎2021
OS build    22449.1000
Experience  Windows Feature Experience Pack 1000.22449.1000.0
phelumie commented 2 years ago

as windows terminal admin you run

wsl --install

when finished reboot.

Then Windows 11 shows a Ubuntu terminal window with this message:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007000d
Error: 0x8007000d The data is invalid.

Press any key to continue...

is there a restriction to install WSL in Windows 11 Pro Insider distro? I already switched to stable update (release) channels and Windows was supposed to be a regular distribution by now. But maybe there's a restriction to switch to older versions when we already got high version updates from the Dev channel. Anyway, I expected the WSL installation to work.

My version

Edition   Windows 11 Pro Insider Preview
Version   Dev
Installed on  ‎05/‎09/‎2021
OS build  22449.1000
Experience    Windows Feature Experience Pack 1000.22449.1000.0

I had this issue after I upgraded to windows 11..i fixed it by setting the time to before (20 October 2021) and then run Ubuntu or any other distribution .. I hope this helps

thebugcreator commented 2 years ago

Got the same problem installing on Windows 11 Insider. Unfortunately, the solution provided by @phelumie doesn't work. Longing for other solutions.

phelumie commented 2 years ago

Got the same problem installing on Windows 11 Insider. Unfortunately, the solution provided by @phelumie doesn't work. Longing for other solutions.

Please upgrade your windows 11 version.. Check windows update and upgrade your windows build.. Please choose beta version

NSouza23 commented 1 year ago

I'm update to WSL2 in W11 Insider, and written comand in PowerShell7 (admin) : wsl --update and : wsl --install -d (your-version) and check uncheck the option WSL for windows in Control Panel and delete all folder of kali in Windows Explorer and Restart my laptop!!