Liunx 在Win11上安装WSL和Debian管理员运行 Powershell:
wsl --install比较慢
# 安装Debian系统
wsl --install -d Debian
>>
正在下载: Debian GNU/Linux
正在安装: Debian GNU/Linux
已成功安装分发。可以通过 “wsl.exe -d Debian” 启动它
正在启动 Debian...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:别用 root 当用户名。WSL 这个提示是让你建一个普通用户(它后面要你输密码,建好后日常用它,需要提权时加 sudo)。直接用 root 当账户名虽然能建,但之后你永远以 root 跑、习惯不好,部分工具也会别扭。
随便起个名字就行,规则:小写字母、不能有空格。建议: