当我尝试startx
从 Ubuntu 的 Windows WSL2 子系统运行命令时,会出现此问题。我尝试打开Ubuntu的图形环境。我已经安装了Ubuntu桌面。但是,当我尝试运行桌面环境时,收到以下错误消息:
$ startx
/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console