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

Installing: Windows Subsystem for Linux stuck at 0.0% #9390

Closed
2 tasks
ogvolkov opened this issue Dec 23, 2022 · 29 comments
Closed
2 tasks

Installing: Windows Subsystem for Linux stuck at 0.0% #9390

ogvolkov opened this issue Dec 23, 2022 · 29 comments

Comments

@ogvolkov
Copy link

ogvolkov commented Dec 23, 2022

Version

Microsoft Windows [Version 10.0.22621.963]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

wsl --install

Expected Behavior

WSL is installed

Actual Behavior

Installing: Windows Subsystem for Linux
[ 0.0% ]

for many minutes, no visible CPU usage or anything

also tried installing via Microsoft Store, stuck at pending there

Diagnostic Logs

WslLogs-2022-12-23_00-12-56.zip

@ogvolkov
Copy link
Author

ogvolkov commented Dec 23, 2022

Also attempted --web-download flag, which gave the following:

C:\Windows\System32>wsl --install --web-download

Downloading: Windows Subsystem for Linux
Installing: Windows Subsystem for Linux
The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.

@ogvolkov
Copy link
Author

I removed the package mentioned in AppXDeployment-Server event log by doing Remove-AppxPackage -package MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.3.0_neutral_~_8wekyb3d8bbwe in Powershell, and then reinstalled it via wsl --install --web-download which installed WSL but stuck at installing Ubuntu. But then again wsl --install Ubuntu --web-download completed the installation. I guess Microsoft Store was borked at the time .

@rohan2734
Copy link

image

even i am stuck at installing ubuntu

I uninstalled wsl , ubuntu due to issues with docker desktop .

and after running

  1. wsl --install . wsl is installed properly, but ubuntu installation is stuck. please help with this issue

@thatux
Copy link

thatux commented May 1, 2023

ubuntu-22.04 install borked, now I'm stuck at 0,0%
any way to recover from this?

wsl --install -d Ubuntu-22.04
Installing: Ubuntu 22.04 LTS
[                           0,0%                           ]

@thatux
Copy link

thatux commented May 1, 2023

Not sure why but this worked:

wsl --install Ubuntu --web-download
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: user
uNew password:
Retype new password:
passwd: password updated successfully
The operation completed successfully.
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 4.4.0-22621-Microsoft x86_64)

for some reason it is shown as Ubuntu instead of `Ubuntu-22.04

C:\Windows\System32>wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu-18.04 (Default)
Ubuntu

@pouyaSamie
Copy link

Not sure why but this worked:

wsl --install Ubuntu --web-download
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: user
uNew password:
Retype new password:
passwd: password updated successfully
The operation completed successfully.
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 4.4.0-22621-Microsoft x86_64)

for some reason it is shown as Ubuntu instead of `Ubuntu-22.04

C:\Windows\System32>wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu-18.04 (Default)
Ubuntu

web download option worked for me

@Youjin1985
Copy link

I'm in same situation, but --web-download just causes wsl to print its arguments and does nothing

@ccoyle1
Copy link

ccoyle1 commented Jun 6, 2023

I'm in same situation, but --web-download just causes wsl to print its arguments and does nothing

wsl --install -d Ubuntu --web-download

Should be the correct command, if you haven't figured it out by now :)

@fmg-nickjardine
Copy link

wsl --install -d Ubuntu --web-download

Should be the correct command, if you haven't figured it out by now :)

This worked for me. Had same thing - could install wsl, but not ubuntu, would just sit there doing nothing.

@Nate-Agbara
Copy link

wsl --install -d Ubuntu --web-download
Should be the correct command, if you haven't figured it out by now :)

This worked for me. Had same thing - could install wsl, but not ubuntu, would just sit there doing nothing.

Did you find a way around the ubuntu not installing? I'm having the same.

@castrosu
Copy link

For me when trying to wsl --install it was stuck on "installing" for like 1 hour so I canceled it and tried wsl --update --web-download and it fixed it

@lvpx
Copy link

lvpx commented Jul 11, 2023

I had to do it in two steps,

wsl --install --web-download

and then

wsl --install -d Ubuntu --web-download

@castrosu
Copy link

I had to do it in two steps,

wsl --install --web-download

and then

wsl --install -d Ubuntu --web-download

yeah that also works

@NitinRana01125532553
Copy link

any update on why the classic
wsl --install -d ubuntu
doesn't work and we need to download using --web-download ?

@NicolasDorier
Copy link

NicolasDorier commented Jul 23, 2023

I had the problem, the workaround worked.

Remove-AppxPackage -package  MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_neutral_~_8wekyb3d8bbwe
wsl --install Ubuntu --web-download

You can find the exact version of the problematic package in the Log viewer of AppXDeployment-Server.

@magnus-bakke
Copy link

I'm in same situation, but --web-download just causes wsl to print its arguments and does nothing

Same thing:

C:\Users\me>wsl --install -d Ubuntu --web-download
--install: unrecognized option: web-download

@andrija-tosic
Copy link

try running this from powershell as admin. worked for me

@Eitz
Copy link

Eitz commented Oct 25, 2023

Why was this closed? The bug is still not fixed

@sc0609
Copy link

sc0609 commented Nov 10, 2023

Why was this closed? The bug is still not fixed

i guess because the issue is with the Microsoft store (and not with WSL ), it has some issues so, it is stuck at 0 (unable to download from Ms store)
if you use vpn the problem might go, you can verify this by downloading any app from ms store and see if it doesn't download without any vpn or somethin. so you know that ms store has issues in your system
I know this in my case cuz my school Wi-Fi blocks downloading from ms store .

and we use --web dl to get rid of MS store and download directly from web

@tig
Copy link

tig commented Nov 14, 2023

BS that this issue is closed without a link to the underlying system that is causing the problem.

At the very least, at almost a year after this issue was Opened, the WSL team would be interested in providing a fix that at least provides clues to how to work around the issue!

@FoxesChooseJiff
Copy link

Absolutely zero workarounds do anything for me. It doesn't even show a progress bar after the download, just a blinking cursor and no disk CPU or net activity occurs in task manager.

@antonionatusch
Copy link

Absolutely zero workarounds do anything for me. It doesn't even show a progress bar after the download, just a blinking cursor and no disk CPU or net activity occurs in task manager.

not even wsl --install --web-download? it worked first try for me

@adamcunnington-mlg
Copy link

Why is this issue closed? wsl.exe --update is recommended by WSL when you open terminal and yet it doesn't work. Therefore, this issue should be open and given it's an old issue, should be described on a known issues page...

@alliepiper
Copy link

This is still happening.

@emekaelo
Copy link

emekaelo commented May 8, 2024

This issue is still present

@usernamex
Copy link

This solved my problem:

  1. wsl --install -d Ubuntu --web-download
  2. Restart PC
  3. Go to Powershell with admin rights.
  4. Type Ubuntu and press enter.

@PedroMP93
Copy link

This solved it for me:

  1. Open Powershell as an admin
  2. WSL was not up to date so running wsl --update --web-download will take care of that
  3. Then install Ubuntu from the web using wsl --install -d Ubuntu --web-download

@stephanie-dm
Copy link

unrecognized option: web-download

@magnus-bakke : if you get this error, try to update WSL first. This worked for me:
wsl --update --web-download
After that, the "web-download" option for the "install" command was available and I could install Ubuntu.

@akshuu222
Copy link

go to microsoft store search for ubuntu and resume the download there.

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