Windows 11家庭版安装WSL
管理员权限打开PowerShell,执行:
1 | wsl --install |
提示安装成功。但是启动WSL的时候报错:
1 | WslRegisterDistribution failed with error: 0x80370114 |
似乎是家庭版在“启用或关闭Windows功能”里看不到Linux子系统的功能,用命令行:
1 | dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart |
(第二个应该是在第一步就激活了的)