1. 进入ubuntu安装目录
C:\Users\当前用户名\AppData\Local\Microsoft\WindowsApps
ubuntu.exe
ubuntu1804.exe
ubuntu2004.exe
3. 执行指令修改默认用户为root
ubuntu1804.exe config --default-user root
C:\Users\当前用户名\AppData\Local\Microsoft\WindowsApps
ubuntu.exe
ubuntu1804.exe
ubuntu2004.exe
ubuntu1804.exe config --default-user root