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

wsl --install fails with Error Code: 0x80245006 #9480

Closed
1 of 2 tasks
Robbie-Perry opened this issue Jan 14, 2023 · 5 comments
Closed
1 of 2 tasks

wsl --install fails with Error Code: 0x80245006 #9480

Robbie-Perry opened this issue Jan 14, 2023 · 5 comments

Comments

@Robbie-Perry
Copy link

Version

Microsoft Windows 10 Enterprise [Version 10.0.19044]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16

Distro Version

No response

Other Software

No response

Repro Steps

  1. Enable "Windows Subsystem for Linux" and "Virtual Machine Platform" in Windows Features.
  2. Download and install kernel update for WSL2: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
  3. In an Admin PowerShell, run wsl --install -d Ubuntu

Expected Behavior

Ubuntu gets installed.

Actual Behavior

Installing: Ubuntu
An error occurred during installation. Distribution Name: 'Ubuntu' Error Code: 0x80245006

Diagnostic Logs

Note: I had already had WSL installed in the past, but had uninstalled it. Not sure if potentially the existing installation had broken anything.

wsl --list --online shows that I am connected, and Ubuntu is returned on the list.

@shaggyhiggins
Copy link

Same issue here on my corporate laptop. Others in the company have installed WSL without issue, but not recently. After trying (and failing) to find any reference to this error code I stumbled on this blog post:

https://devblogs.microsoft.com/commandline/the-windows-subsystem-for-linux-in-the-microsoft-store-is-now-generally-available-on-windows-10-and-11/

I thought maybe it has something to do with the fact that I don't have the windows store installed on my laptop. I attempted to use the new --web-download option but complains that option isn't available.

wsl --status output:


Default Version: 2

Windows Subsystem for Linux was last updated on 2023-01-13
WSL automatic updates are on.

Kernel version: 5.10.16

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 17, 2023

/logs

@ghost
Copy link

ghost commented Jan 17, 2023

Hello! Could you please provide more logs to help us better diagnose your issue?

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

Thank you!

@Robbie-Perry
Copy link
Author

Same as @shaggyhiggins I was doing this on a corporate laptop, and several employees had done it successfully. It appears IT made changes to our proxy that seems to have broken it. Doing it from my home network resolved the issue.

@SAEED51fardial
Copy link

Versione

Microsoft Windows 10 Enterprise [Versione 10.0.19044]

Versione WSL

  • WSL2
  • WSL1

Versione del kernel

5.10.16

Versione distribuita

Nessuna risposta

Altro software

Nessuna risposta

Passaggi di riproduzione

  1. Abilita "Sottosistema Windows per Linux" e "Piattaforma macchina virtuale" in Funzionalità Windows.
  2. Scarica e installa l'aggiornamento del kernel per WSL2: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
  3. In un PowerShell di amministrazione, eseguiwsl --install -d Ubuntu

Comportamento atteso

Ubuntu viene installato.

Comportamento effettivo

Installazione: Ubuntu Si è verificato un errore durante l'installazione. Nome distribuzione: Codice errore "Ubuntu": 0x80245006

Registri diagnostici

Nota: avevo già installato WSL in passato, ma lo avevo disinstallato. Non sono sicuro che potenzialmente l'installazione esistente abbia rotto qualcosa.

wsl --list --onlinemostra che sono connesso e Ubuntu viene restituito nell'elenco.

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

4 participants