提示:
Installing, this may take a few minutes…
指定的网络名不再可用。
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:
1. 先卸载WSL2
1). wslconfig /l
NAME STATE VERSION
** Ubuntu-18.04 Stopped 1
2). wslconfig /u Ubuntu-18.04
3). wslconfig /l
适用于 Linux 的 Windows 子系统没有已安装的分发版。
可以通过访问 Microsoft Store 来安装分发版:
https://aka.ms/wslstore
2. 打开Hyper-V

3. 再安装Ubuntu
这里先把Ubuntu_1804.2019.522.0_x64.appx解压缩,再双击ubuntu1804.exe进行WSL和Ubuntu的同时安装

这次可以输入账号,不会提示“指定的网络名不再可用”
本文详细介绍了如何解决在Windows上安装Ubuntu WSL2时遇到的'指定的网络名不再可用'的问题。首先,通过运行wslconfig命令卸载已有版本,然后打开Hyper-V,最后重新安装Ubuntu。在重新安装过程中,正确设置UNIX用户名,避免错误提示。
1334

被折叠的 条评论
为什么被折叠?



