WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WslRegisterDistribution failed with error: 0x80070003

Open wxxiong6 opened this issue 5 years ago • 35 comments

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

Press any key to continue...

wxxiong6 avatar Dec 21 '20 07:12 wxxiong6

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

sirredbeard avatar Dec 21 '20 18:12 sirredbeard

https://github.com/microsoft/WSL/issues/6512#issuecomment-773173169

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.

benyaminl avatar Feb 14 '21 02:02 benyaminl

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

pdebuitlear avatar Feb 24 '21 21:02 pdebuitlear

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 https://github.com/microsoft/WSL/issues/5718 hasn't fixed yet till now.

benyaminl avatar Feb 25 '21 04:02 benyaminl

Logs from #6512 here.

therealkenc avatar Feb 25 '21 21:02 therealkenc

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!

EduardoCabria avatar May 17 '21 07:05 EduardoCabria

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

pdebuitlear avatar May 17 '21 18:05 pdebuitlear

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)

lokinmodar avatar May 21 '21 14:05 lokinmodar

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

benyaminl avatar May 21 '21 14:05 benyaminl

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...

lokinmodar avatar May 21 '21 15:05 lokinmodar

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.

ksugiarto avatar May 24 '21 08:05 ksugiarto

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

rbalmeida avatar Jul 29 '21 21:07 rbalmeida

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.

walfredocarneiro avatar Aug 12 '21 01:08 walfredocarneiro

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

ioweb-gr avatar Dec 10 '21 14:12 ioweb-gr

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..

huang-tianwen avatar Jan 08 '22 17:01 huang-tianwen

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 😞.

robinduerhager avatar Feb 02 '22 00:02 robinduerhager

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.

huang-tianwen avatar Feb 02 '22 11:02 huang-tianwen

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.

robinduerhager avatar Feb 03 '22 23:02 robinduerhager

Any progress? I am using windows 11

VAllens avatar Mar 16 '22 10:03 VAllens

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 :)

miron avatar Mar 28 '22 12:03 miron