![如何在 Windows 上的 Bash 中以“root”身份登录(Windows Subsystem For Linux)](https://linux22.com/image/1584928/%E5%A6%82%E4%BD%95%E5%9C%A8%20Windows%20%E4%B8%8A%E7%9A%84%20Bash%20%E4%B8%AD%E4%BB%A5%E2%80%9Croot%E2%80%9D%E8%BA%AB%E4%BB%BD%E7%99%BB%E5%BD%95%EF%BC%88Windows%20Subsystem%20For%20Linux%EF%BC%89.png)
我尝试使用该命令 -lxrun /setdefaultuser root
但出现错误:
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
The Windows Subsystem for Linux has an install or uninstall operation pending.
虽然我已经打开了Windows Subsystems For Linux。