Unable to get GUI apps to work in Windows 11 with either Ubuntu or Debian
Windows Version
Microsoft Windows [Version 10.0.26200.7019]
WSL Version
WSL version: 2.6.1.0
Are you using WSL 1 or WSL 2?
- [x] WSL 2
- [ ] WSL 1
Kernel Version
Kernel version: 6.6.87.2-1
Distro Version
- Ubuntu-24.04 Running 2
Other Software
WSLg version: 1.0.66
Repro Steps
All commands using PowerShell 7.5.4.
Docker Desktop v4.50.0 running.
Updated NVIDIA drivers to latest.
Installed WSL 2.
Set 2 as default.
Installed Ubuntu using command wsl --install --distribution Ubuntu-24.04
Shut down WSL using wsl --shutdown
Shut down Docker Desktop
Restart WSL using wsl -d Ubuntu-24.04
Restart Docker Desktop from Start Menu
In Ubuntu CLI, run sudo apt update && sudo apt upgrade && sudo apt autoremove
In Ubuntu CLI, run sudo apt install gnome-text-editor -y
In Ubuntu CLI, enter gnome-text-editor ~/.bashrc &
Receive [1] 2091
Expected Behavior
Expecting to see gnome text editor open.
Actual Behavior
No GUI app present in Windows.
I have tried restarting WSL multiple times. Updated NVIDIA drivers. Installed a GUI framework (xfce4). Set the DISPLAY=:0.
NOTHING HAS WORKED.
Is there ANY way to trace why???
Diagnostic Logs
No errors. No diagnostics. No logs. No messages of any sort.
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1
The script will output the path of the log file once done.
If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues
Once completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
/emailed-logs
Diagnostic information
Found '/emailed-logs', adding tag 'emailed-logs'
Has anyone had an opportunity to look into this? I did send my logs.