[Ubuntu] Can't install unbuntu distro and any other distro and WSL is broken for me
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
- Tryed to reinstall WSL
- Tryed to reinstall Microsoft Store (im installing ubuntu from microsoft store)
- Tryed install ubuntu from .appxbundle package
- 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)
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:
- WSL and Linux related commands not working (#10211), similarity score: 0.77
Closed similar issues:
- WSL stopped working now reinstall failing (#10760), similarity score: 0.76
- WSL2 completely breaks after resetting ubuntu (#7112), similarity score: 0.75
- Unable to switch distro to run WSL2 (#9153), similarity score: 0.75
- Wsl Ubuntu installing failed with error (#9003), similarity score: 0.75
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Now the tool works, here the logs: WslLogs-2024-04-05_18-25-51.zip
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
Reproduced issue here the new logs: WslLogs-2024-04-05_18-32-39.zip
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
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 ?
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
idk how im tryed something and now ubuntu works! thanks for help