Open PowerShell as Administrator and run the following command:
wsl --install
Restart.
Download and install the WSL2 Linux kernel update package.
Set WSL2 as default.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The optional component "Windows Subsystem for Linux" cannot be found in the list after reinstalling Windows 11.
无法安装wsl
手动安装显示如下:
PS C:\Users\Administrator> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
部署映像服务和管理工具
版本: 10.0.22621.2792
映像版本: 10.0.22631.4317
错误: 0x800f080c
功能名称 Microsoft-Windows-Subsystem-Linux 未知。
未识别出 Windows 功能名称。
请使用 /Get-Features 选项在映像中查找功能名称,然后重试该命令。
可以在 C:\windows\Logs\DISM\dism.log 上找到 DISM 日志文件
PS C:\Users\Administrator>
Open PowerShell as Administrator and run the following command:
wsl --install
Restart.
Download and install the WSL2 Linux kernel update package.
Set WSL2 as default.
您好,
首先请运行"dism.exe /online /get-features" 看下当前机器是否支持此功能.
其次可以尝试使用程序界面安装看下.
How to Enable Windows Subsystem for Linux in Windows 11
安装的时候确保系统联网, 可能需要从网络下载. 如果是域环境的电脑, 考虑下是否被配置了组策略.
也可以试下以下方法: