The optional component "Windows Subsystem for Linux" cannot be found in the list after reinstalling Windows 11.

Leo 0 Reputation points
2024-11-16T00:30:43.7833333+00:00

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>

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 24,551 Reputation points MVP
    2024-11-20T12:16:06.91+00:00

    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.

    0 comments No comments

  2. Wesley Li 11,255 Reputation points
    2024-12-03T07:58:19.2733333+00:00

    您好,

    首先请运行"dism.exe /online /get-features" 看下当前机器是否支持此功能.

    其次可以尝试使用程序界面安装看下.

    How to Enable Windows Subsystem for Linux in Windows 11

    安装的时候确保系统联网, 可能需要从网络下载. 如果是域环境的电脑, 考虑下是否被配置了组策略.

    也可以试下以下方法:

    Install WSL | Microsoft Learn

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.