Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22.04 WSL2 opens to GUI with blank screen #8525

Open
1 of 2 tasks
thesalmonidae opened this issue Jun 18, 2022 · 15 comments
Open
1 of 2 tasks

Ubuntu 22.04 WSL2 opens to GUI with blank screen #8525

thesalmonidae opened this issue Jun 18, 2022 · 15 comments

Comments

@thesalmonidae
Copy link

thesalmonidae commented Jun 18, 2022

Version

Microsoft Windows [Version 10.0.22000.739]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Ubuntu 22.04

Other Software

Docker Desktop 4.9.1

Repro Steps

Go to Microsoft store, search for Ubuntu 22.04, install, open.

Expected Behavior

I expect that at the GUI I could create an user.

Actual Behavior

The GUI is blank, cannot create an user.

Diagnostic Logs

Screenshot 2022-06-18 110311

Screenshot 2022-06-18 110535

Screenshot 2022-06-18 110958

@DanieBeets
Copy link

Same result on a windows 11 laptop with intel iris xe graphics. Works on a desktop windows 10 machine with nvidia graphics. This issue might be related to gpu/gpu drivers.

@thesalmonidae
Copy link
Author

Oh, btw, I have Lenovo X1 Nano 1st gen and it indeed has the Intel gpu.

@gnsmrky
Copy link

gnsmrky commented Jun 24, 2022

Same for me. Intel 12th gen Core i7. From the error output, seems like some fonts or config files missing. May be the files needed by the Ubuntu OOBE.

wsl2_ubuntu2204-oobe-error

I've worked around this using text UI profile setup.

  1. Install Ubuntu 22.04 from Microsoft Store.
  2. Launch Ubuntu 22.04.
  3. Once OOBE unpacks completed and shows the blank "Ubuntu WSL" windows, simply close the window.
    • It will bring up the Ubuntu console window as root user. Close this console window.
  4. Open PowerShell and run the following. It brings up the text mode tui profile setup instead.
    wsl --shutdown
    wsl --unregister Ubuntu-22.04
    ubuntu2204.exe --ui=tui
    

Ubuntu2204-tui-00
Ubuntu2204-tui
Ubuntu2204-tui-02
Ubuntu2204-tui-03

@benhillis
Copy link
Member

We do not own the Ubuntu 22.04 app. This should be reported to the folks at Canonical.

@gnsmrky
Copy link

gnsmrky commented Jun 25, 2022

Posted at launchpad Ubuntu Wsl Bug #1979881

@onomatopellan
Copy link

onomatopellan commented Jun 28, 2022

Quick test to know if it's gpu related. From Ubuntu22.04 bash run:
sudo LIBGL_ALWAYS_SOFTWARE=1 /usr/libexec/wsl-setup

If it shows the window correctly then it's a problem with the intel windows driver.

@gnsmrky
Copy link

gnsmrky commented Jun 30, 2022

Quick test to know if it's gpu related. From Ubuntu22.04 bash run: sudo LIBGL_ALWAYS_SOFTWARE=1 /usr/libexec/wsl-setup

It works! Just close the blank profile setup screen. It opens wsl2 window as root user. Run the above to continue the profile setup to setup a new user.

However, the default user is still set as root user. To change the default user, run the following in PowerShell.

ubuntu2204 config --default-user <username>

@pawangond
Copy link

pawangond commented Jul 5, 2022

Quick test to know if it's gpu related. From Ubuntu22.04 bash run: sudo LIBGL_ALWAYS_SOFTWARE=1 /usr/libexec/wsl-setup

If it shows the window correctly then it's a problem with the intel windows driver.

I tried this , it shows the setup properly after running this command but when you fill all the details and click finish setup , it crashes the pc
Was earlier using stable intel driver , updated to latest beta to see if it fixes the issue but it didnt
Running : Latest intel beta driver (30.0.101.3113) & latest windows 11 pro insider build 25151 _220625-1835
IMG_20220705_222442

@onomatopellan
Copy link

@pawangond That's a known issue for build 25151. They are investigating it.

@EOM
Copy link

EOM commented Aug 1, 2022

My Problem Windows 11 AMD Ryzen 7 5800U with GPU Radeon Graphics ;(
image

My Solution Was:

  1. wsl --shutdown
  2. wsl --unregister Ubuntu-22.04
  3. ubuntu2204.exe --ui=tui
  4. ubuntu2204 config --default-user

@soumesh2002
Copy link

Debian (WSL 2) should be good alternative. Stable enough👌

@edurojasr
Copy link

This happen to me with WSL2 from the MS Store and Ubuntu 22.04.1

@soumesh2002
Copy link

Don't know when they gonna release a fix

@framerate
Copy link

FYI - I was trying to fix something before I had my coffee, but be aware the solution posted erases all your data. Don't be like me.

  • wsl --shutdown
  • wsl --unregister Ubuntu-22.04
  • ubuntu2204.exe --ui=tui
  • ubuntu2204 config --default-user

@jacobus
Copy link

jacobus commented Aug 30, 2023

People should be warned that wsl --unregister will destroy all their data in the distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests