I'm running through the tutorial on: https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#5-install-and-use-a-gui-package
After installing X11 applications I try to follow the tutorial and open xeyes
:
xeyes &
I get the following response:
Error: Can't open display
wsl.exe --version
and add the results in an edit to your question? Also, is there any more information in the error? If so, please copy and paste the full message. Thanks! – NotTheDr01ds Jan 11 '23 at 17:25However using a different command I can see that I am using WSL2 for Ubuntu, if helpful
– rh1040 Jan 13 '23 at 16:31--version
, and may not support GUI applications (if you are using Windows 10). See Running GUI apps under WSL and my answer to a similar question for instructions on how to upgrade to the "Store" release of WSL on Windows 10. If that solves it, let me know by clicking the "This solved my problem" in the header. Otherwise, let me know via comment and we'll investigate further. Thanks! – NotTheDr01ds Jan 14 '23 at 05:12