原因:修改c:/Users/用户目录 -> C:/Users/用户目录1
cmd下运行bash出错,然后删除卸载linux子系统出错。
Microsoft Windows [Version 10.0.17134.165]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\xxx>lxrun /install /y
Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
This will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here:
https://aka.ms/uowterms
Error: 0x80070002
C:\Users\xxx>
C:\Users\xxx>lxrun /uninstall /y
Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
This will uninstall Ubuntu on Windows.
This will remove the Ubuntu environment as well as any modifications and new applications with the exception of:
C:\Users\xxx\AppData\Local\lxss\home
C:\Users\xxx\AppData\Local\lxss\root
Uninstalling...
Error: 0x80070002