WSL2で 'startx'を実行中にエラーが発生しました:コンソールユーザーのみがXサーバーを実行できます。

WSL2で 'startx'を実行中にエラーが発生しました:コンソールユーザーのみがXサーバーを実行できます。

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

ベストアンサー1

おすすめ記事