WSL2에서 'startx' 실행 중 오류 발생: 콘솔 사용자만 X 서버를 실행할 수 있습니다.

WSL2에서 'startx' 실행 중 오류 발생: 콘솔 사용자만 X 서버를 실행할 수 있습니다.

startx이 문제는 Ubuntu의 Windows WSL2 하위 시스템에서 명령을 실행 하려고 할 때 발생합니다. 우분투의 그래픽 환경을 열려고 합니다. 우분투 데스크탑을 설치했습니다. 그러나 데스크탑 환경을 실행하려고 하면 다음과 같은 오류 메시지가 나타납니다.

$ 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

관련 정보