当我尝试在 WSL2 ubuntu 上安装 Qt 时,出现以下错误:
root@sun-pc:/mnt/e# ls -l qt*
-rwxrwxrwx 1 sun sun 157714525 May 30 09:51 qt-creator-opensource-linux-x86_64-4.9.1.run
-rwxrwxrwx 1 sun sun 176152456 May 30 09:52 qt-creator-opensource-windows-x86_64-4.9.1.exe
-rwxrwxrwx 1 sun sun 1458369997 Jun 5 11:24 qt-opensource-linux-x64-5.12.3.run
-rwxrwxrwx 1 sun sun 3933849864 Jun 5 11:33 qt-opensource-windows-x86-5.12.3.exe
root@sun-pc:/mnt/e# ./qt-opensource-linux-x64-5.12.3.run
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
我尝试过解决方案这里但它没有帮助。我该如何解决?谢谢。