Windows 10: WSL is not showing installed distributions

Discus and support WSL is not showing installed distributions in Windows 10 Software and Apps to solve the problem; I installed two distros Ubuntu and Kali on WSL and they both ran without issue after I installed the distros.So, I installed Ubuntu, used it after I... Discussion in 'Windows 10 Software and Apps' started by M.Abdallah, Jan 1, 2025 at 3:17 PM.

  1. WSL is not showing installed distributions


    I installed two distros Ubuntu and Kali on WSL and they both ran without issue after I installed the distros.So, I installed Ubuntu, used it after I installed it, it worked fine. Later installed Kali, it also worked.Later I had to restart the desktop, logged back in, and tried to run Ubuntu, but got an error message saying I did not have a distro installed. I ran WSL --list --verbose it showed no installed distros.When I tried to install Ubuntu again, it said that it was already installed.

    :)
     

  2. Wsl Installation Command timed out in Windows Powershell

    When I enabled the Windows Subsystem for Linux feature and tried to run the "wsl --install" command in powershell, I received the following message. How do I move forward to install the latest distribution?

    ----------------------------------------------------------------------------------------------------------

    Usage: wsl.exe [Argument] [Options...] [CommandLine]



    Arguments for running Linux binaries:



    If no command line is provided, wsl.exe launches the default shell.



    --exec, -e <CommandLine>

    Execute the specified command without using the default Linux shell.



    --

    Pass the remaining command line as is.



    Options:

    --cd <Directory>

    Sets the specified directory as the current working directory.

    If ~ is used the Linux user's home path will be used. If the path begins

    with a / character, it will be interpreted as an absolute Linux path.

    Otherwise, the value must be an absolute Windows path.



    --distribution, -d <Distro>

    Run the specified distribution.



    --user, -u <UserName>

    Run as the specified user.



    Arguments for managing Windows Subsystem for Linux:



    --help

    Display usage information.



    --install [Options]

    Install additional Windows Subsystem for Linux distributions.

    For a list of valid distributions, use 'wsl --list --online'.



    Options:

    --distribution, -d [Argument]

    Downloads and installs a distribution by name.



    Arguments:

    A valid distribution name (not case sensitive).



    Examples:

    wsl --install -d Ubuntu

    wsl --install --distribution Debian



    --set-default-version <Version>

    Changes the default install version for new distributions.



    --shutdown

    Immediately terminates all running distributions and the WSL 2

    lightweight utility virtual machine.



    --status

    Show the status of Windows Subsystem for Linux.



    --update [Options]

    If no options are specified, the WSL 2 kernel will be updated

    to the latest version.



    Options:

    --rollback

    Revert to the previous version of the WSL 2 kernel.



    --inbox

    Only update the inbox WSL 2 kernel. Do not install WSL from the Microsoft Store.



    --web-download

    Download the most recent version of WSL from the internet instead of the Microsoft Store.



    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.
     
    Darshil Mukesh Desai, Jan 1, 2025 at 3:26 PM
    #2
  3. Bernard Kortor, Jan 1, 2025 at 3:26 PM
    #3
  4. WSL is not showing installed distributions

    wsl installation nightmare

    Hey guys,

    Haven't been able to install wsl on windows. Here's a summary of my pain:

    PS C:\Users\[me]> wsl -d Ubuntu-22.04

    There is no distribution with the supplied name. Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND

    PS C:\Users\[me]> wsl --install -d Ubuntu-22.04

    Ubuntu 22.04 LTS is already installed.

    Launching Ubuntu 22.04 LTS...

    The operation completed successfully.

    PS C:\Users\[me]> wsl -l -v

    Windows Subsystem for Linux has no installed distributions.

    Use 'wsl.exe --list --online' to list available distributions and 'wsl.exe --install ' to install.

    Distributions can also be installed by visiting the Microsoft Store: Install WSL

    Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND

    Whenever it does "successfully" launch, it just flashes a terminal on the screen for half a second and immediately closes. Then some background process called WSL lives on in the task manager, though it uses no resources.

    The only way I could download it originally was through the command

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

    Trying to install through windows store or the above command without web-download just timed out.

    This is a new Win11 pc, fully updated. I have restarted it multiple times and re-enabled the optional features for vm / wsl / hypervisor.

    I also can't seem to download anything from the windows store. I thought this may be a firewall issue, but it has permissions in the firewall settings and disabling the firewall seems to have no impact.

    If I remove both installations (WSL & Ubuntu 22.04), I can try this:

    PS C:\Users\tyler> wsl --install -d Ubuntu-22.04

    Installing: Ubuntu 22.04 LTS
    An error occurred during installation. Distribution Name: 'Ubuntu 22.04 LTS' Error Code: 0x80072ee2

    Happens regardless of DNS status to 8.8.8.8 (google) or firewall enabled/disabled (fixes recommended elsewhere).
     
    Tyler Nuanes, Jan 1, 2025 at 3:26 PM
    #4
Thema:

WSL is not showing installed distributions

Loading...
  1. WSL is not showing installed distributions - Similar Threads - WSL showing installed

  2. WSL is not showing installed distributions

    in Windows 10 Gaming
    WSL is not showing installed distributions: I installed two distros Ubuntu and Kali on WSL and they both ran without issue after I installed the distros.So, I installed Ubuntu, used it after I installed it, it worked fine. Later installed Kali, it also worked.Later I had to restart the desktop, logged back in, and...
  3. WSL not installing

    in Windows 10 Gaming
    WSL not installing: I have been trying to install wsl withwsl --installbut it just doesn't work.Now it outputs:wsl --install Installing Windows optional component: VirtualMachinePlatform Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2215 Error:...
  4. WSL not installing

    in Windows 10 Software and Apps
    WSL not installing: I have been trying to install wsl withwsl --installbut it just doesn't work.Now it outputs:wsl --install Installing Windows optional component: VirtualMachinePlatform Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2215 Error:...
  5. WSL is not showing installed distributions

    in Windows 10 Software and Apps
    WSL is not showing installed distributions: Windows 10:Version 22H2 OS Build: 19045.4651Apon running "wsl --list"C:\WINDOWS\system32>wsl --list Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreBut apon running "wsl...
  6. WSL is not showing installed distributions

    in Microsoft Windows 10 Store
    WSL is not showing installed distributions: Windows 10:Version 22H2 OS Build: 19045.4651Apon running "wsl --list"C:\WINDOWS\system32>wsl --list Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreBut apon running "wsl...
  7. WSL is not showing installed distributions

    in Windows 10 Gaming
    WSL is not showing installed distributions: Windows 10:Version 22H2 OS Build: 19045.4651Apon running "wsl --list"C:\WINDOWS\system32>wsl --list Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreBut apon running "wsl...
  8. How to prevent installation of certain Linux Distribution with WSL?

    in Windows 10 Gaming
    How to prevent installation of certain Linux Distribution with WSL?: Good dayI have a technical question concerning the use of WSL. Is there a way to prevent users to install some Linux distributions like Kali and to allow the others? Or doing the blocking action on the proxy layer should be enough i.e prevent access to the url specified in...
  9. How to prevent installation of certain Linux Distribution with WSL?

    in Windows 10 Software and Apps
    How to prevent installation of certain Linux Distribution with WSL?: Good dayI have a technical question concerning the use of WSL. Is there a way to prevent users to install some Linux distributions like Kali and to allow the others? Or doing the blocking action on the proxy layer should be enough i.e prevent access to the url specified in...
  10. GPU Compute, WSL Install and WSL Update arrive in WSL

    in Windows 10 News
    GPU Compute, WSL Install and WSL Update arrive in WSL: There are three thrilling new updates for the Windows Subsystem for Linux (WSL) in the new Windows Insider Preview Build 20150. The first is GPU compute: a feature that allows your Linux binaries to leverage your GPU, which makes it possible to do more machine learning/AI...