microsoft / microsoft/wslg

wslg didn't install usefully in Windows 11

Open
#415 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
11.9k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

Environment

Windows build number: [Version 10.0.22000.132]
Your Distribution version: Ubuntu 20.04.2 LTS
Your WSLg version: Windows subsystem for linux WSLg Preview 1.0.26

Steps to reproduce

WSL logs:

  • here is the feedback hub entry
  • Attach WSLg logs from /mnt/wslg: sadly the mount point in question does not exist. If it does, I would have a working installation.

Expected behavior

  1. start on the dev preview channel
  2. upgrade the computer
  3. run all windows updates and reboot a lot
  4. do wsl --update and wsl --shutdown from powershell
  5. do sudo apt update and sudo apt upgrade from Ubuntu
  6. Add the following to my [wsl2] section in .wslconfig: guiApplications = true
  7. be able to run an X app or see the /mnt/wslg directory

Actual behavior

  1. do steps 1-6 above
  2. the /mnt/wslg directory doesn't exist
  3. running any X apps returns Error: Can't open display: :0
PS C:\Users\deborah> wsl --list -v
  NAME                   STATE           VERSION
* Ubuntu                 Running         2
  docker-desktop-data    Running         2
  docker-desktop         Running         2

504$ ls -al /mnt
total 16
drwxr-xr-x  4 root root 4096 Mar  9 20:14 .
drwxr-xr-x 23 root root 4096 Aug 17 13:22 ..
drwxrwxrwx  2 root root 4096 Mar  9 20:14 c
drwxr-xr-x  2 root root 4096 Mar  9 20:14 wsl  

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the detailed-log instructions in CONTRIBUTING.md and the linked Feedback Hub entry, then reproduce the listed Windows 11, WSL, Ubuntu, and .wslconfig steps. Done means the installation creates /mnt/wslg and X applications no longer return "Can't open display: :0".

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.