安装wsl2 报错,WslRegisterDistribution failed with error: 0x80070002

服务端开发·教程·资源 · 2022-10-20 · 539 人浏览
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070002
Error: 0x80070002 The system cannot find the file specified.
 
Press any key to continue...

解决方法:

  1. 不要默认用wsl2,默认用wsl1(powershell打开后输入wsl --set-default-version 1
  2. 重新安装发行版 wsl --install -d Debian
  3. 切换到wsl2 wsl --set-default-version 2

WSL2.jpeg

Theme Jasmine by Kent Liao