-
Notifications
You must be signed in to change notification settings - Fork 852
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
Installing any distro fails with "WslRegisterDistribution failed with error: 0x80070002 Error: 0x80070002 The system cannot find the file specified." #4959
Comments
Same here. I add this working. Today I've tried to open my Ubuntu terminal and I'm having the same problem. |
Same here. Happened when I upgraded to WSL 2. |
@CBornes @k3rst1n Did yall find any fixes for this? |
@spaceraccoon No unfortunately not - still not working |
Not to bump but.... also having this issue. Windows 10.0.19041.264 |
Same here |
I also have this issue on 2004 Build 20150.1000 |
Same issue here on Windows version 2004 build 19041.329 |
I was able to get this resolved by removing the WSL kernel update from programs/features, and then removing the WSL feature, rebooting, and then re-enabling the WSL feature and rebooting. I also deleted my WSL instances during this process. |
Hey @chancez, I tried this at 20150.1000 - it unfortunatly did not help. |
Thank You for the info, I've tried this partially, by uninstalling that WSL kernel update because since a couple of reboots ago WSL2 is completely broken... I'm desperate to recover my WSL2 filesystem, hopefully somebody from the dev team can help us here :( |
The only way I fixed this is by disabling WSL and re-enabling it again, I tried everything. |
WSL2 on insider previews has been so unreliable I've gone back to something I can control: an Ubuntu VM made in HyperV which is basically the same, and I'm already feeling the experience is much better. I now feel confident that no windows update will wipe out my WSL2 distros, as a next step I'm opting out of insider previews, I'm probably done with WSL and evangelizing it, It's a good concept but the execution is so lacking... I don't feel it's really worth it. |
Well, it's not like you weren't warned about it. I don't believe this is a valid reason to hate on WSL2. |
Sure, i was aware of the insider "disclaimer" and that's just my personal opinion. But I won't deny I'm sick of WSL2, too many things broke at the wrong time, I'm outta here. Enjoy the ride! |
Bumping this since it is really an issue and blocked the usage of WSL 2 |
Issue still appears in December. |
have anyone found fix for this issue? i was using 2sl2 kali-linux peacefully but today i tried to overwrite the kali-linux.vhdx file, then this problem started for me and i did every fixes posted on other git issues, still i can't find any fix. anyone help me . |
the same issue. I tried reinstalling wsl and disabling virtual machine and then enabling it again, didn't work. |
Same problem here! As people are suggesting on #5107, I also think that it is related to the absence of Iv'e also tried to "manually" install the adapter via Hyper-V with no luck.😥 |
I Agree, I also having this problem on 20H2, it's frustating I fix it using in-place upgrade with latest windows 20H2 and it works. I take sometimes and no data/Apps deleted as like reset windows. It works for me anyway, I could install fedora on WSL now |
I encountered this issue today. I had Docker Desktop installed, I removed it but no luck starting with WSL Ubuntu :( |
exactly same situation as u, and have no idea what to do |
I wish I hadn't of updated. Everything was working fine util about a week ago. I hope we are getting close to a fix reliable permanent fix. |
Same |
for anyone still looking for solution here, try to delete the .wslconfig under your |
I uninstalled Docker Desktop. Removed Ubuntu install. Disabled and re-enabled WSL. This is what made it work eventually! Thank you |
Thanks @hguitar ! This method works for my end! |
Using CCleaner and cleaning registry helped me. Thanks |
help, couldnt solve by solution above, I have tried
I thought it was because Edit: problem was solved, |
Could not find root cause of problem. What achieved a successful install for me was to forgo using winget and just install from Microsoft Store. Just to see if that cleared the root cause, used
which resulted in
So maybe this is a A speculation of mine as to what I did that is the root cause is that I renamed a distribution by editing a distribution name as per https://superuser.com/a/1613251/125532
As per microsoft/winget-cli#1705 using Windows Event Viewer in branch Applications and Services Logs/Microsoft/Windows/AppXDeployment-Server/Microsoft-Windows-AppXDeploymentServer/Operational for tab: Details For more on the error code see: Troubleshooting packaging, deployment, and query of Windows apps Error code: ERROR_INSTALL_PACKAGE_NOT_FOUND |
My solution based on CollapsedMetals idea that the problem can be related to missing the |
wsl --set-default-version 1 |
I got same problem. And I remembered that I uninstalled the VMware Workstation Player before the problem occur. So I tried to reinstall the VMware Workstation Player and it was solved. You could try to install VMware Workstation Player if it helps. |
This worked for me right away, no reboots or uninstall/reinstall required, thank you! |
Thank you, from all the proposed solutions only this one worked for me! You're a life saver! |
i wanna just say thanks for your sharing. it help me to solve my mind blowing problem. |
I just had to use CCleaner to remove the registry |
注册表问题,用CCcleaner解决。 |
Same issue suddenly occurs, and none of the above solutions work for me. |
|
Ok I have to confess, I thought I caused this problem for myself by blindly deleting huge vhdx's and uninstalling docker desktop. |
It really works! I tried to solve this problem all day and you really saved me. |
I tired many things over past 24 hours, and the only thing that worked for me was removing the whole wsl and then re-installing it. |
After years of development, this WSL2 issue still hit my computer today. I tried all solutions proposed here and installing CCleaner was the only way. Thank you very much. |
CCleaner -> Tools -> Registry -> Scan -> Apply Fix (Works for Windows 10 home edition ubuntu 22.04 in August, 2024) Thanks for sharing, hieudtrung. |
I occurred 0x80070002 because C:\Program Files\WSL\system.vhd was not found. |
My company had deployed the latest version of the Microsoft Defender for Endpoint plugin for WSL via Intune. This failed to install on multiple PCs, causing this error when launching WSL:
Or one of these errors when launching docker desktop:
Or:
I resolved the issue on computer by repairing the plugin installation from control panel, as described in the documentation: https://learn.microsoft.com/en-us/defender-endpoint/mde-plugin-wsl#installation-steps:~:text=If%20you%20see%20an%20error%20on%20launching%20WSL%2C%20such%20as%20%22A%20fatal%20error%20was%20returned%20by%20plugin%20%27DefenderforEndpointPlug%2Din%27%20Error%20code%3A%20Wsl/Service/CreateInstance/CreateVm/Plugin/ERROR_FILE_NOT_FOUND%22%2C%20it%20means%20the%20Defender%20for%20Endpoint%20plug%2Din%20for%20WSL%20installation%20is%20faulty.%20To%20repair%20it%2C%20follow%20these%20steps%3A |
Had same issue, tried a lot of suggestions, and was not resolved. |
I was able to fix this issue by using Hope this helps. 😉 TLDR: Check if you have |
Oh my goodness, I have been trying everything I could think of for the past two weeks, thank you so much! |
Hi,
After installing Windows 10 on my desktop, I installed the Debian distribution. Right after installation, it loaded and worked fine, however after closing the shell and re-opening it, it got stuck while loading and my CPU usage increased to 100% - in the services I could see around 8 processed called "init" that were running and using up all cpu resources.
I wasn't able to kill the processes, only a reboot helped. As the processes came back every time I opened the Debian shell, I eventually deinstalled the disto.
Now, when I try to install any distro, I always end up with the same error:
I tried all possible combinations of deinstalling, reboot, etc.
wsllist never shows any of the Distros, even if they show up in the installed programs.
Attached you can find my logs - I was collecting them while I tried to install the Ubuntu distribution.
logs.zip
Windows version: Win 10 Pro, Version 1909 Build 18363.657.
Please let me know if you require anything else!
Thank you,
Kerstin
The text was updated successfully, but these errors were encountered: