适用于 Linux 的 Windows 子系统没有已安装的分发版

问题描述:

Windows 10系统Powershell运行wsl命令,显示:

适用于 Linux 的 Windows 子系统没有已安装的分发版。 可以通过访问 Microsoft Store 来安装分发版: https://aka.ms/wslstore

解决:

确保 Windows 10 版本 2004 及更高版本(内部版本 19041 及更高版本)或 Windows 11。

版本查看命令:winver

运行命令 wsl --install 如:

 wsl --install -d Ubuntu
或 wsl
--install --distribution Debian

参考:安装 WSL | Microsoft Docs

Windows旧版本参考:旧版 WSL 的手动安装步骤 | Microsoft Docs

Windows Server参考:在 Windows Server 上安装 Linux 子系统 | Microsoft Docs

 

posted on 2021-09-29 22:18  valin  阅读(28849)  评论(0编辑  收藏  举报