其他尝试包括更新Ubuntu内所有软件包及设置DISPLAY环境变量,但这些方法均无效。DISPLAY的作用是作为X11客户端程序与X服务器之间的通信通道。通过上述步骤及理解DISPLAY的作用,应能有效地解决"Can't open display"错误。确保WSL版本最新,执行必要的测试,并了解相关环境变量的作用,是解决此类问题的关键。
export DISPLAY=:0 export WAYLAND_DISPLAY=wayland-0 export XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir...
环境:wsl2+Ubuntu1804+opengl 本人两台笔记本进行同样的环境配置 一台可直接使用,一台报错:Can't open display 地址:ubuntu - Running graphical Linux desktop applications from WSL 2 – "Error E233: cannot open display" - Stack Overflow 解决方法:更新wsl 1、更新wsl wsl--update 2、重启wsl wsl --shut...
Error: Can't open display: localhost:0.0 Additional Details I have tried running Xming and XLaunch/VcXsrv using the-acflag. I have also attempted to use the X410 X server with the same result. VcXsrv is system tray:DESKTOP-LN1HSHQ:0.0 - 0 clients ...
注意:一些WSL 2用户会遇到类似couldn't connect to display "172.x.x.x:0"的错误。如果是这样,请...
$vulkaninfoGPU id :0(Microsoft Direct3D12(Your GPU)): VA-API Currently,vainfofails on x11 and wayland. 当前,vainfo不能在 x11 和 wayland 上运行. $ sudo pacman -S libva libva-mesa-driver libva-utils $ vainfo --display drm Trying display: drm ...
注意:一些 WSL2 用户遇到了类似 couldn't connect to display "172.x.x.x:0" 的错误。如果那是您尝试使用以下命令检查存储在 DISPLAY 中的 IP 地址: echo $DISPLAY 。如果显示的 IP 似乎是错误的(即“8.8.8.8”或另一个不工作的 IP 地址),您需要将第 5 点中显示的 ~/.bashrc 中的代码更改为可以获取...
declaration allowed only at the start of the document Below is a rendering of the page up to ...
I did update to @m3lab's suggested KB5020030. This got me part of the way there. My WSL installation still didn't use the most recent kernel. This can be verified by running: wsl --version In my case that still showed "Kernel Version: 5.10.something". This can be remedied by insta...
请注意,我已经能够做到这一点(WSL2,,python3,,Windows 10)。我可以理解为什么它可能不适用于你,...