Skip to content

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

Closed

Description

@ogvolkov

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

Activity

  1. ogvolkov commented on Dec 23, 2022

    @ogvolkov
    Author

    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.
    
  2. ogvolkov commented on Dec 23, 2022

    @ogvolkov
    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 .

  3. rohan2734 commented on Apr 24, 2023

    @rohan2734

    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
  4. thatux commented on May 1, 2023

    @thatux

    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%                           ]
    
  5. thatux commented on May 1, 2023

    @thatux

    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
    
  6. pouyaSamie commented on May 4, 2023

    @pouyaSamie

    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

  7. Youjin1985 commented on Jun 4, 2023

    @Youjin1985

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

  8. Sinnyssi commented on Jun 6, 2023

    @Sinnyssi

    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 :)

  9. fmg-nickjardine commented on Jun 21, 2023

    @fmg-nickjardine

    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.

  10. Nate-Agbara commented on Jun 23, 2023

    @Nate-Agbara

    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.

  11. castrosu commented on Jun 23, 2023

    @castrosu

    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

  12. lvpx commented on Jul 11, 2023

    @lvpx

    I had to do it in two steps,

    wsl --install --web-download

    and then

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

  13. castrosu commented on Jul 11, 2023

    @castrosu

    I had to do it in two steps,

    wsl --install --web-download

    and then

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

    yeah that also works

  14. Ni-011 commented on Jul 14, 2023

    @Ni-011

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

  15. 17 remaining items

  16. umardy commented on Dec 24, 2024

    @umardy

    Adding --web-download worked for me. Full command: wsl --install -d ubuntu --web-download

  17. metadol commented on Jan 8, 2025

    @metadol

    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

    🛐

  18. metadol commented on Jan 9, 2025

    @metadol

    wsl.exe --install -d Ubuntu this is the one from the microsoft docs

  19. whimian commented on Jan 14, 2025

    @whimian

    WSL document:
    Image

  20. hajigur69 commented on Feb 18, 2025

    @hajigur69

    very helpful thanks all

  21. lesik248 commented on Mar 2, 2025

    @lesik248

    I had to do it in two steps,

    wsl --install --web-download

    and then

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

    don't forget to restart your computer after the first step

  22. vuxuanhungg commented on Mar 10, 2025

    @vuxuanhungg

    I had the Problem with Ubuntu install being stuck at 0%. I waited for some time thinking it might just show 0% but be downloading still. I then tried to type some command when it was still showing the progress bar at 0%. As I struck the "c" key to type "cancel" it jumped to 100% and finished the install. I have no Idea why.

    More or less the same here. First, I tried to install on my laptop using wsl --install but the loading indicator stuck at 0%. I saw no CPU or Internet usage inside Task Manager, so I cancelled and use --web-download option.
    Today I made another attempt to install it on another laptop and it stuck at 27%. I waited for a while and found your comment. Instead of c I pressed Enter (I guess anything except Ctrl-C will do) and voila, it showed 100% completed. What a bug =))

  23. hinkleal commented on Apr 6, 2025

    @hinkleal

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

    This worked for me, after trying the suggestion of typing wsl --install -d Ubuntu --web-download, which gave me an error because --web-download is unrecognized on my OS.

    The exception is that I'm using a laptop and the install was stuck at 0.0% because it wanted my laptop charger to be plugged in! So lame. Anyway, once I plugged my computer cable in, Ubuntu installation went to 100% within a few seconds in Windows PowerShell and the rest of the download worked.

  24. ugintl commented on Apr 20, 2025

    @ugintl

    I had to do it in two steps,

    wsl --install --web-download

    and then

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

    Only this method worked

  25. propgsp commented on Apr 26, 2025

    @propgsp

    Nothing worked for me :(

    wsl installed but ubuntu not installing i tried everything

    it just prints the arguments as below:

    """
    Arguments for managing distributions in Windows Subsystem for Linux:

    --export <Distro> <FileName>
        Exports the distribution to a tar file.
        The filename can be - for standard output.
    
    --import <Distro> <InstallLocation> <FileName> [Options]
        Imports the specified tar file as a new distribution.
        The filename can be - for standard input.
    
        Options:
            --version <Version>
                Specifies the version to use for the new distribution.
    
    --list, -l [Options]
        Lists distributions.
    
        Options:
            --all
                List all distributions, including distributions that are
                currently being installed or uninstalled.
    
            --running
                List only distributions that are currently running.
    
            --quiet, -q
                Only show distribution names.
    
            --verbose, -v
                Show detailed information about all distributions.
    
            --online, -o
                Displays a list of available distributions for install with 'wsl --install'.
    
    --set-default, -s <Distro>
        Sets the distribution as the default.
    
    --set-version <Distro> <Version>
        Changes the version of the specified distribution.
    
    --terminate, -t <Distro>
        Terminates the specified distribution.
    
    --unregister <Distro>
        Unregisters the distribution and deletes the root filesystem.
    

    """"

  26. propgsp commented on Apr 26, 2025

    @propgsp

    update :

    use the cmd to install wsl or distros.
    then go to micosoft store and go to downloads section then pause and resume .
    the download will start thats it !

    enjoy linux!

  27. jeffrade commented on Jun 3, 2025

    @jeffrade

    Steps I tried in order (you can probably skip the middle two). Was failing for me as well until I specified the full version Ubuntu-22.04

    wsl --install # Installation step hangs at 0%
    wsl --install Ubuntu --web-download # error msg ERROR_ALREADY_EXISTS
    wsl --install -d Ubuntu --web-download # error msg ERROR_ALREADY_EXISTS
    wsl --install -d Ubuntu-22.04 --web-download # Installation successful!
    
  28. LycorisChisatoo commented on Oct 10, 2025

    @LycorisChisatoo

    Steps I tried in order (you can probably skip the middle two). Was failing for me as well until I specified the full version Ubuntu-22.04

    wsl --install # Installation step hangs at 0%
    wsl --install Ubuntu --web-download # error msg ERROR_ALREADY_EXISTS
    wsl --install -d Ubuntu --web-download # error msg ERROR_ALREADY_EXISTS
    wsl --install -d Ubuntu-22.04 --web-download # Installation successful!
    

    it works, thanks very much

  29. TecoTurtle commented on Oct 29, 2025

    @TecoTurtle

    for me it sat at 0.0% for a while then it started to install

  30. hamzaskhan commented on Nov 6, 2025

    @hamzaskhan

    When we type wsl --install and it does not work, this is because we are opting for the default download. wsl is basically Linux which has distros, therefore many a times, our machines/ configurations may clash with the default version. Similarly, the default version may not be available all the time due to open source.

    In that case, its better to explicitly mention which distro of Linux we want to download.
    This can be done by first listing all the available distros with the command:
    wsl --list --online or in short wsl --l --o

    and we shall get something like this:

    NAME FRIENDLY NAME AlmaLinux-8 AlmaLinux OS 8 AlmaLinux-9 AlmaLinux OS 9 AlmaLinux-Kitten-10 AlmaLinux OS Kitten 10 AlmaLinux-10 AlmaLinux OS 10 Debian Debian GNU/Linux FedoraLinux-43 Fedora Linux 43 FedoraLinux-42 Fedora Linux 42 SUSE-Linux-Enterprise-15-SP7 SUSE Linux Enterprise 15 SP7 SUSE-Linux-Enterprise-16.0 SUSE Linux Enterprise 16.0 Ubuntu Ubuntu Ubuntu-24.04 Ubuntu 24.04 LTS archlinux Arch Linux kali-linux Kali Linux Rolling openSUSE-Tumbleweed openSUSE Tumbleweed openSUSE-Leap-16.0 openSUSE Leap 16.0 Ubuntu-20.04 Ubuntu 20.04 LTS Ubuntu-22.04 Ubuntu 22.04 LTS OracleLinux_7_9 Oracle Linux 7.9 OracleLinux_8_10 Oracle Linux 8.10 OracleLinux_9_5 Oracle Linux 9.5 openSUSE-Leap-15.6 openSUSE Leap 15.6 SUSE-Linux-Enterprise-15-SP6 SUSE Linux Enterprise 15 SP6

    If I were to choose any one version, in my example let's say Ubuntu 24.04 LTS
    I'd type: wsl --install -d Ubuntu-24.04

    The available and popular fix above is to include --web-download but that is a simple reroute of the greater issue, which can in this way be navigated with much more control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions