ubuntu 升级到WSL 2时出错:终结点Map程序中没有更多的终结点可用

vql8enpb  于 2023-06-05  发布在  其他
关注(0)|答案(4)|浏览(284)

WSL1没有问题。我想升级到WSL 2。
当我尝试升级到wsl2时命令行失败。我试着删除Ubuntu并重新安装它,没有区别。
Virtual Machine Platform处于活动状态。
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.

我不知道现在该怎么办。任何帮助是高度赞赏。

ymzxtsji

ymzxtsji1#

我从帖子里得到了最初的错误

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

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

2izufjch

2izufjch2#

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

oprakyz7

oprakyz73#

我遇到了同样的问题,卸载/安装Windows子系统Linux更新工作正常。
步骤1:添加或删除程序
搜索“Linux”
卸载

第二步:
install再次WSL
然后wsl -l再次工作。

ukqbszuj

ukqbszuj4#

转到服务,然后:
1.重新启动主机网络服务
1.重新启动LxssManager

相关问题