Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 升级到WSL 2时出错:终结点映射器中没有更多可用的终结点_Windows_Powershell_Ubuntu_Windows Subsystem For Linux - Fatal编程技术网

Windows 升级到WSL 2时出错:终结点映射器中没有更多可用的终结点

Windows 升级到WSL 2时出错:终结点映射器中没有更多可用的终结点,windows,powershell,ubuntu,windows-subsystem-for-linux,Windows,Powershell,Ubuntu,Windows Subsystem For Linux,WSL1没有问题。我想升级到WSL2 当我尝试升级到wsl2时,命令行失败。我试着删除Ubuntu并重新安装,没有区别 虚拟机平台处于活动状态 Windows内部版本号:19041.208 wsl --set-version Ubuntu 2 输出: PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2 Conversion in progress, this may take a few minutes... For informatio

WSL1没有问题。我想升级到WSL2

当我尝试升级到wsl2时,命令行失败。我试着删除Ubuntu并重新安装,没有区别

虚拟机平台处于活动状态

Windows内部版本号:19041.208

wsl --set-version Ubuntu 2
输出:

PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
There are no more endpoints available from the endpoint mapper.
我试图删除ubuntu并首先运行以下命令:

wsl --set-default-version 2
再次安装ubuntu后,它会继续保持:

Installing, this may take a few minutes...
当我按住CTRL+C键并再次启动它时,会出现以下错误:

WslRegisterDistribution failed with error: 0x8000000d An illegal state change was requested.

我不知道现在该怎么办。非常感谢您的帮助。

有时会显示这一点,因为WSL2已经安装并设置为版本2。

我从帖子中得到了原始错误

WslRegisterDistribution failed with error: 0x800706d9
Error: 0x800706d9 There are no more endpoints available from the endpoint mapper.

对我来说,最终的问题是主机网络服务没有运行。我将它设置为自动运行并启动它。然后我可以启动Ubuntu并将其设置为WSL2中的默认设置。

修复了它。。已卸载的Windows Subsystem for Linux和虚拟虚拟机监控程序平台重新启动,然后重新安装,然后重新启动。。之后它起了作用