win11 安装 wsl ubuntu 18.04后换源失败!

记录几个问题是如何解决的。

一 下载wsl后,有报错:
Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e Error: 0x8007019e ??????? Linux ? Windows ???? Press any key to continue...

原因是 win11系统本身没有开启 wsl的支持:

解决方案:

  1. 按 Win + R,输入 optionalfeatures 回车。

  2. 勾选以下两项:

    • ☑️ 适用于 Linux 的 Windows 子系统

    • ☑️ 虚拟机平台

  3. 点击 确定,按提示重启电脑。

2 重启后仍无法打开:

wsl --update 解决!

你可能感兴趣的:(Windows,linux)