如何在 Windows 上的 Bash 中以“root”身份登录(Windows Subsystem For Linux)

如何在 Windows 上的 Bash 中以“root”身份登录(Windows Subsystem For Linux)

我尝试使用该命令 -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。

相关内容