win11 自带的wsl打开异常

Haocen Zhao 0 Reputation points
2023-08-18T11:15:15.0666667+00:00

win11 电脑自带的wsl打不开,点击打开之后出现一个窗口之后瞬间闪退,应该怎么解决》

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,409 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hania Lian 8,551 Reputation points Microsoft Vendor
    2023-08-21T06:27:34.76+00:00

    Hi.

    WSL 闪退的可能原因有以下几种:

    • 你没有启用适用于 Linux 的 Windows 子系统可选组件。你可以通过打开“控制面板”->“程序和功能”->“打开或关闭 Windows 功能”-> 选中“适用于 Linux 的 Windows 子系统”,或使用 PowerShell 命令来启用它。
    • 你没有设置默认的 Linux 发行版。你可以通过运行 wsl -l -v 命令来查看当前安装的发行版,然后通过运行 wsl --setdefault <distribution> 命令来设置默认发行版。
    • WSL 内核需要更新。你可以通过运行 wsl --update 命令来更新 WSL 内核,然后通过运行 wsl -l -shutdown 命令来重启 WSL 内核。

    Hope the information is helpful.

    Best Regards,

    Hania Lian

    ============================================
    If the Answer is helpful, please click "Accept Answer" and upvote it.

    3 people found this answer helpful.
    0 comments No comments