所以问题是当我打开'Ubuntu‘和'Windows Linux子系统’时,会出现错误:'Ubuntu‘
WslRegisterDistribution failed with error: 0x8000000d
Error: 0x8000000d An illegal state change was requested.
Press any key to continue...
'Windows Subsystem for Linux'
Windows Subsystem for Linux has no installed distributions.
Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install ' to install.
Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND
Press any key to continue...
发布于 2023-04-15 03:28:51
在这里抛出一个理论,基于一个相关的Github线程中的评论。
有几件事需要检查和尝试:
wsl -l -v
中显示的发行版,那么您可能会遇到在Github线程中提到的问题。在这种情况下,虽然我通常不喜欢推荐注册表黑客,但我认为您最好的选择是:regedit
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\
下检查注册表中的任何项当然,不能保证,如果安装失败一次,它不会再次失败,但让我们从试图纠正手头的问题开始。
https://askubuntu.com/questions/1463634
复制相似问题