WSL 解决 The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.

本文最后更新于:2022年7月4日 上午

本文记录Windows 10 安装 Linux 子系统时报错的解决方案。

问题复现

在Microsoft Store 启动Ubuntu 时报错:

1
2
3
4
5
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007019e
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
See https://aka.ms/wslinstall for details.
Press any key to continue...

解决方案

开启子系统支持

  • 控制面板 –> 程序与功能 –> 启动或关闭Windows功能 勾选 适用于Linux的Windows子系统,重启即可。

开启 开发者模式

参考资料



文章链接:
https://www.zywvvd.com/notes/system/windows/about-wsl/wsl-2/wsl-2/


WSL 解决 The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
https://www.zywvvd.com/notes/system/windows/about-wsl/wsl-2/wsl-2/
作者
Yiwei Zhang
发布于
2021年4月22日
许可协议