WSL 2 - WslRegisterDistribution failed with error 0x80070040
WSL 1 installation is OK, WSL 2 - see above. This was after 20H1 update today.
Same here, on a fresh installation of WSL2 on windows version 2004 build 9041.264 It's crashing Docker when it tries to install the distro, and with debian and ubuntu when first lauching them after installation.
@devsuitup Managed to install after removing WSL 1 folder(C:\Users<User>\AppData\Local\Packages\CanonicalGroupLimited...). Then I installed WSL 1 again, removed it, again removed its folder manually. Finally I got WSL 2 installed and working. Absolutely not sure what step from those above exactly helped me but it is what it is. Off topic: also there are problems with network, it's working 50/50, approximately every second launch of the system. Maybe it's smh connected with dynamic IP of the new virtual network adapter for WSL 2.
Thank you for your answer @KoPIIIyH
I actually had a different error code, I'm sorry for the noise. Posted another issue for the error code I've got, even though the behavior looks the same.
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.
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!