本文主要参考了Windows Subsystem for Linux Installation Guide for Windows 10的步骤。
文章目录
1. Enable the Windows Subsystem for Linux
用管理员身份运行windows powershell,输入下面的代码来开启linux subsystem的权限:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2. 检查Windows系统的配置
- For x64 systems: Version 1903 or higher, with Build 18362 or higher.
- For ARM64 systems: Version 2004 or higher, with Build 19041 or
higher. - Builds lower than 18362 do not support WSL 2. Use the Windows
Update Assistant to update your version of