Skip to content
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: 0x80070003 #6363

Closed
wxxiong6 opened this issue Dec 21, 2020 · 34 comments
Closed

WslRegisterDistribution failed with error: 0x80070003 #6363

wxxiong6 opened this issue Dec 21, 2020 · 34 comments
Labels
failure-to-launch failure to launch

Comments

@wxxiong6
Copy link

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 ???????????

Press any key to continue...

@sirredbeard
Copy link
Contributor

Please collect WSL logs and provide a link the feedback hub item.

@therealkenc therealkenc added the failure-to-launch failure to launch label Feb 11, 2021
@benyaminl
Copy link

#6512 (comment)

Please do https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html and try to enable wsl again, it should work correctly. It mean there're some file missing. I seen this in many windows installation (clean windows), and the only way to fix it is either reset the windows or in-place upgrade. I choose In-place upgrade.

@pdebuitlear
Copy link

Saying "there's some file missing" isn't helpful. Not everyone in corporate settings can do an in-place upgrade.

@benyaminl
Copy link

Saying "there's some file missing" isn't helpful. Not everyone in corporate settings can do an in-place upgrade.

I agree with that, but til about 6 month looking into log, there're nothing that help, and my lab need to go on, so I just in-place upgrade each computer on my lab. It's troublesome. The mod on reddit also doesn't help at all and state there won't be any 0x80070003 if we put the wsl on C: drive. In-place ugrade is my last resort, at least it's working now, but #5718 hasn't fixed yet till now.

@therealkenc
Copy link
Collaborator

Logs from #6512 here.

@EduardoCabria
Copy link

Saying "there's some file missing" isn't helpful. Not everyone in corporate settings can do an in-place upgrade.

Hi !
I have the same problem, when I try to install a Linux distribution on my Windows (because it is a WSL2 requirement, in order to run Docker Desktop on my local Windows10 laptop), I get this message:
imagen

Have you found a solution other than the one proposed by @benyaminl ?

It happens to me like @pdebuitlear , I have a corporative settings and I can't do an in-place upgrade.

Thankyou!

@pdebuitlear
Copy link

Saying "there's some file missing" isn't helpful. Not everyone in corporate settings can do an in-place upgrade.

Hi !
I have the same problem, when I try to install a Linux distribution on my Windows (because it is a WSL2 requirement, in order to run Docker Desktop on my local Windows10 laptop), I get this message:
imagen

Have you found a solution other than the one proposed by @benyaminl ?

It happens to me like @pdebuitlear , I have a corporative settings and I can't do an in-place upgrade.

Thankyou!

The fix for me was to set the following registry key value to 1:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\obcaseinsensitive

@lokinmodar
Copy link

My system:

Edition	Windows 10 Pro
Version	Dev
Installed on	‎5/‎21/‎2021
OS build	21382.1
Experience	Windows 10 Feature Experience Pack 321.12100.0.3

Fresh installed system and it produced the op error. Did the inplace upgrade by iso and no success. Even docker is giving me errors:

System.InvalidOperationException:
Failed to deploy distro docker-desktop to %LOCALAPPDATA%\Docker\wsl\distro: exit code: -1
 stdout: The system cannot find the path specified.

Funny thing is: before I format the PC due to another issue everything was working flawlessly (I was already using this Dev Channel Build)

@benyaminl
Copy link

benyaminl commented May 21, 2021 via email

@lokinmodar
Copy link

Does the folder exist? Because if that folder doesn't exist than it will raise such error.

Yes it does but i managed to finally solve the issue by deleting the file %USERPROFILE%\.wslconfig, restarting wsl and retrying the distro install. It is worth to check for this before doing any in-place upgrade...

@ksugiarto
Copy link

ksugiarto commented May 24, 2021

Does the folder exist? Because if that folder doesn't exist than it will raise such error.

Yes it does but i managed to finally solve the issue by deleting the file %USERPROFILE%\.wslconfig, restarting wsl and retrying the distro install. It is worth to check for this before doing any in-place upgrade...

Thanks a lot, this is finally the one that able to solve mine as well.

I tried to do this repair-install

#6512 (comment)

Please do https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html and try to enable wsl again, it should work correctly. It mean there're some file missing. I seen this in many windows installation (clean windows), and the only way to fix it is either reset the windows or in-place upgrade. I choose In-place upgrade.

Didn't work for me.

@rbalmeida
Copy link

I was having issues reinstalling, just deleted the wslconfig file as suggested by @lokinmodar and it resolved my issue as well. Thanks for sharing.

@walfredocarneiro
Copy link

Does the folder exist? Because if that folder doesn't exist than it will raise such error.

Yes it does but i managed to finally solve the issue by deleting the file %USERPROFILE%\.wslconfig, restarting wsl and retrying the distro install. It is worth to check for this before doing any in-place upgrade...

Thanks a lot, this is finally the one that able to solve mine as well.

I tried to do this repair-install

#6512 (comment)
Please do https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html and try to enable wsl again, it should work correctly. It mean there're some file missing. I seen this in many windows installation (clean windows), and the only way to fix it is either reset the windows or in-place upgrade. I choose In-place upgrade.

Didn't work for me.

====> This work for me.

@ioweb-gr
Copy link

For my case there's no .wslconfig file. The error persists on fresh install of windows 11.

@huang-tianwen
Copy link

For my case there's no .wslconfig file. The error persists on fresh install of windows 11.

any luck in fixing this?
I regretted so much to upgrade my windows..

@robinduerhager
Copy link

None of the provided workarounds helped me.
I also don't have a .wslconfig. I still get the following error:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 Das System kann den angegebenen Pfad nicht finden.

Press any key to continue...

Really enjoyed working with WSL so i hope this can get fixed 😞.

@huang-tianwen
Copy link

None of the provided workarounds helped me. I also don't have a .wslconfig. I still get the following error:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 Das System kann den angegebenen Pfad nicht finden.

Press any key to continue...

Really enjoyed working with WSL so i hope this can get fixed 😞.

Back up data and reinstall win 11, I also reset it and it works.
But all applications need to re-install.

@robinduerhager
Copy link

None of the provided workarounds helped me. I also don't have a .wslconfig. I still get the following error:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 Das System kann den angegebenen Pfad nicht finden.

Press any key to continue...

Really enjoyed working with WSL so i hope this can get fixed 😞.

Back up data and reinstall win 11, I also reset it and it works. But all applications need to re-install.

I'm on Windows 10. Idk why, but WSL just suddenly stopped working.
I really don't want to reinstall windows all over again... I'd rather use a Linux Machine on Hyper-V, haha.
I feel like there must be another wokraround or fix.

@VAllens
Copy link

VAllens commented Mar 16, 2022

Any progress?
I am using windows 11

@miron
Copy link

miron commented Mar 28, 2022

Does the folder exist? Because if that folder doesn't exist than it will raise such error.

Yes it does but i managed to finally solve the issue by deleting the file %USERPROFILE%\.wslconfig, restarting wsl and retrying the distro install. It is worth to check for this before doing any in-place upgrade...

Forgot about this lurking around when I compiled a custom kernel :)

@VincentSastra
Copy link

I came across this same issue on Windows 10 Home.
I have enabled virtualization on my BIOS and enabled both Virtual Machine Platform and Windows Hypervisor Platform Windows Features. I have tried re-installing these features multiple times but I couldn't make it work.

I was finally able to fix the issue by doing a a Windows In-Place Upgrade. More specifically I followed the direction in this tutorial: repair-install-windows-10-place-upgrade to do the upgrade with the ISO file.

Hope this can help someone :)

@Shadow-Cipher
Copy link

Saying "there's some file missing" isn't helpful. Not everyone in corporate settings can do an in-place upgrade.

Hi !
I have the same problem, when I try to install a Linux distribution on my Windows (because it is a WSL2 requirement, in order to run Docker Desktop on my local Windows10 laptop), I get this message:
imagen
Have you found a solution other than the one proposed by @benyaminl ?
It happens to me like @pdebuitlear , I have a corporative settings and I can't do an in-place upgrade.
Thankyou!

The fix for me was to set the following registry key value to 1: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\obcaseinsensitive

THANK YOU!!!! This fixed my WSL issue, awesome!

@rudolphos
Copy link

rudolphos commented Dec 29, 2022

@pdebuitlear

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\obcaseinsensitive

Didn't work:

image
Ubuntu was installed from Microsoft Store:
image

Windows 10, 19045.2364; Windows Feature Experience Pack 120.2212.4190.0

@lokinmodar

Yes it does but i managed to finally solve the issue by deleting the file %USERPROFILE%\.wslconfig, restarting wsl and retrying the distro install. It is worth to check for this before doing any in-place upgrade...

No such folder existed on my system..

EDIT:
I fixed it.
I uninstalled Ubuntu, deleted all remained files (additionally used powershell to uninstall related apps) and uninstalled WSL2 Kernel released in 2021 April (digital signature). Then I installed this same kernel and downloaded Ubuntu from Store. Now it successfully installed.
image
image

@mozhuanzuojing
Copy link

mozhuanzuojing commented Mar 24, 2023

Resolved WslRegisterDistribution failed with error: 0x80070003

  1. Open regedit
  2. Find 计算机\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
  3. 删除Lxss下空的注册表项,例如:{24022fa9-20a9-4e2a-9cde-9c1bfe4e6700}
  4. wsl-regedit

@mohdwaseem
Copy link

mohdwaseem commented Apr 9, 2023

Try this simple solution, it works with me
https://stackoverflow.com/a/67639264/1849480

@LouieMartin
Copy link

I have not coded for like a month because of this issue, any progress?

@adonisbiju
Copy link

Disabling core isolation (VBS) and then reenabling and reinstalling WSL fixed the problem for me.

@ptomato
Copy link

ptomato commented Sep 12, 2023

I managed to fix the problem by going to "Turn Windows featuers on or off" in Settings, unchecking "Virtual Machine Platform" and "Windows Subsystem for Linux", rebooting, and then reinstalling WSL.

@yuanqingye
Copy link

Does the folder exist? Because if that folder doesn't exist than it will raise such error.

Yes it does but i managed to finally solve the issue by deleting the file %USERPROFILE%\.wslconfig, restarting wsl and retrying the distro install. It is worth to check for this before doing any in-place upgrade...

works for me!!

@robinduerhager
Copy link

I just tried this solution but with Ubuntu-18.04.6 and Ubuntu-22.04.6 and it finally worked for me :)

#3054 (comment)

@ScofieldaCreep
Copy link

Resolved WslRegisterDistribution failed with error: 0x80070003

  1. Open regedit
  2. Find 计算机\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
  3. 删除Lxss下空的注册表项,例如:{24022fa9-20a9-4e2a-9cde-9c1bfe4e6700}
  4. wsl-regedit

This works for situations like you mishandle the regits qaq

@EllieShan
Copy link

Resolved WslRegisterDistribution failed with error: 0x80070003

  1. Open regedit
  2. Find 计算机\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
  3. 删除Lxss下空的注册表项,例如:{24022fa9-20a9-4e2a-9cde-9c1bfe4e6700}
  4. wsl-regedit

it works for me after delete items under Lxss, thanks.

@Jacquwes
Copy link

Hello, I'm having the same error since installing Atlas OS on my computer. I have enabled the optional features, virtualization is enabled in BIOS, there is no .wslconfig file, there is no Lxss entry in my registry. I cannot do an in-place system upgrade. Any other solutions?

@craigloewen-msft
Copy link
Member

This issue has been open for a long time, and so we're going to close it out for bookkeeping purposes.

If you're still seeing this issue please check out this workaround: #6363 (comment) and if that doesn't fix you please file a new issue on our GitHub so we can actively triage you! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failure-to-launch failure to launch
Projects
None yet
Development

No branches or pull requests