WSL 安装无效的命令行选项

WSL install invalid command line option

我想在 WSL 中安装 Ubuntu 图像。

但是,当 运行 wsl --install:

时出现错误

Invalid command line option: --install

我正在使用 windows 10 教育,版本 20H2 OS Build 19042.867。

您正在尝试根据 Windows 内幕文档进行操作,该文档不适用于一般 public,它是这么说的。 WSL/WSL2 是一个快速移动的目标。

大多数人应该使用 Microsoft Store 安装 WSL/WSL2。搜索 Ubuntu。将显示几个选项。选择 simply called Ubuntu,而不是 Ubuntu 20.04 LTS 或其他。 Ubuntu 包保持最新。

VSCode 有 current instructions for installing Ubuntu,然后 VSCode。您不必安装 VSCode.