WSL icon indicating copy to clipboard operation
WSL copied to clipboard

[Ubuntu] Can't install unbuntu distro and any other distro and WSL is broken for me

Open oliik2013 opened this issue 2 years ago • 8 comments

Windows Version

Microsoft Windows [Version 10.0.22631.3296]

WSL Version

Can't check due error

Are you using WSL 1 or WSL 2?

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

Ubuntu

Distro Version

Ubuntu 22.04.3 LTS

Other Software

No response

Repro Steps

  1. Tryed to reinstall WSL
  2. Tryed to reinstall Microsoft Store (im installing ubuntu from microsoft store)
  3. Tryed install ubuntu from .appxbundle package
  4. Tryed reseting windows with personal files saving (idk why at doing that im got error)

Expected Behavior

Ubuntu working and installing

Actual Behavior

WSL aren't working, can't install any distros.

Diagnostic Logs

Can't run log collecting tool, im got error (runned as admin)

oliik2013 avatar Apr 05 '24 16:04 oliik2013

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 scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Apr 05 '24 16:04 github-actions[bot]

Now the tool works, here the logs: WslLogs-2024-04-05_18-25-51.zip

oliik2013 avatar Apr 05 '24 16:04 oliik2013

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Detected appx version: 2.0.9.0
Found no WSL traces in the logs

github-actions[bot] avatar Apr 05 '24 16:04 github-actions[bot]

Reproduced issue here the new logs: WslLogs-2024-04-05_18-32-39.zip

oliik2013 avatar Apr 05 '24 16:04 oliik2013

Diagnostic information
Detected appx version: 2.0.9.0
Detected user visible error: 
Detected user visible error: Wsl/Service/RegisterDistro/ExportDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND
Detected user visible error: Wsl/InstallDistro/E_ACCESSDENIED

github-actions[bot] avatar Apr 05 '24 16:04 github-actions[bot]

Thank you @oliik2013. Looking at the logs, this might be caused by a store issue.

Can you try to install via: wsl.exe --install -d ubuntu --web-download ?

OneBlue avatar Apr 05 '24 22:04 OneBlue

Dont work, here the cmd output (in polish language) @OneBlue C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.9.0_x64__8wekyb3d8bbwe>wsl.exe --install -d ubuntu --web-download Pobieranie: Ubuntu Instalowanie dystrybucji: Ubuntu Dystrybucja Ubuntu została zainstalowana. Trwa uruchamianie dystrybucji Ubuntu... Grupa lub zasób nie jest w odpowiednim stanie, aby można było wykonać żądaną operację. Error code: Wsl/InstallDistro/0x8007139f

oliik2013 avatar Apr 06 '24 07:04 oliik2013

idk how im tryed something and now ubuntu works! thanks for help

oliik2013 avatar Apr 06 '24 11:04 oliik2013