Fix: ‘Windows Subsystem For Linux has no Installed Distributions’ Error

Bash is a Unix Shell and a form of a command language that was first introduced in 1989. It has been widely distributed as the default Login shell for Linux and MacOS. Although it is mostly seen in Linux and Marcos, there is a version that can be installed on Windows 10. However, a lot of complaints have been coming in of users who are unable to use Bash on Windows 10 and a “Windows Subsystem For Linux has No Installed Distributions” error is seen while trying to do so.

“windows subsystem for Linux has no installed distributions” Error message

What Causes the “Windows Subsystem For Linux has no Installed Distributions” Error?

After receiving numerous complaints from multiple users, we decided to investigate the issue and devised a set of solutions that fixed the error for most of our users. Also, we looked into the reasons due to which this error is triggered and listed them below.

  • Missing Distributions: Upon installing bash for Windows, there are certain additional files that need to be installed for the Windows Subsystem. If these files can’t be downloaded automatically from the Microsoft Store, this error is triggered.
  • Disabled Service: In certain cases, the LxssManager service that is usually running in the background might be blocked after a recent update. This can prevent the operating system from acquiring all the necessary files in order to run the bash shell which might trigger the error.
  • Wrong Default Distribution Selected: If Ubuntu hasn’t been selected as the default distribution for the operating system it might trigger this error. Because Ubuntu is an essential distribution for running the bash shell.

Now that you have a basic understanding of the nature of the problem, we will move on towards the solutions. Make sure to implement these in the specific order in which they are presented to avoid conflict.

Solution 1: Installing Distributions Manually

If certain distributions cannot be downloaded and installed automatically, we can try to install them manually through the command prompt. Therefore, in this step, we will be running a command to install essential distributions. For that:

  1. Press the “Windows” + “R” buttons simultaneously to open the Run prompt.
  2. Type in “cmd” and press “Shift” + “Ctrl” + “Enter” to grant the administrative privileges.
    Typing cmd in the Run Prompt and pressing Shift + Alt + Enter to open an elevated Command Prompt
  3. Type in the following command and press enter.
    lxrun /install
    Initiating Lxrun /install command

    Note: Try running this command in Powershell if it doesn’t work in Command Prompt.

  4. This will trigger the download from the Microsoft Store, press “Y” to initiate the downloading process if asked by the command prompt.
  5. Check to see if the issue persists.
    Note: This command can also be executed on the Power Shell (Administrator). But if it isn’t recognized, download and install Ubuntu from the Microsoft Store and try running the command.

Solution 2: Wait for 10 Minutes

For some users, the problem fixed itself after 5 to 10 minutes. Often after a reboot, certain processes and services take some time to start. Due to this, the error might be triggered if you try to run bash too soon after the startup. Therefore, it is recommended to wait for at least 10 minutes after booting up your computer before you proceed with the steps below.

Solution 3: Installing Ubuntu

If Ubuntu hasn’t been installed on your computer, it can trigger this error because it is a very important distribution that is required in order to run bash. In order to download and install Ubuntu follow the steps below.

  1. Restart your computer and log in to your account.
  2. Click on this link to open the download page.
  3. Click on the “Get” option and then select the “Open Microsoft Store” option.
    Clicking on the “Get” option
  4. Once Microsoft Store loads up, click on the “Get” option to begin downloading the Ubuntu Distribution.
  5. Once the downloading process finishes, click on the “Install” option that appears in place of the “Get” option.
    Clicking on the “Install” option
  6. Ubuntu will now be installed on the computer.
  7. Check to see if the issue persists.

Solution 4: Starting LxssManager Service

It is possible that the LxssManager Service has been disabled due to which this error is triggered. Therefore, in this step, we will be manually starting the LxssManager Service. For that:

  1. Press “Windows” + “R” keys simultaneously to open the Run prompt.
  2. Type in “Services.msc” and press “Enter“.
    Typing in “Services.msc” and pressing Enter
  3. Scroll down and double click on the “LxssManager” service.
  4. Click on the startup type dropdown and select “Automatic“.
  5. Click on the “Start” option and select “Apply“.
    Selecting Automatic as the startup type and pressing enter
  6. Click on “OK” and check to see if the issue persists.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

10
    TT
    Trond Tactile Jun 2, 2020

    step 1 doesn’t work, since “lxrun” is not recognized.

      SW
      Shane Warren Author Jun 3, 2020

      Did you run the command prompt as an admin? if not, run it as an admin and check again

        TT
        Trond Tactile Jun 3, 2020

        Figured out the issue. In the newer versions of windows, you can no longer run that command, but instead you need to launch Ubuntu that you installed from the microsoft store. The first launch will install it, and after that, everything works.
        Might be worth updating the article 😉

        Reply
          SW
          Shane Warren Author Jun 5, 2020

          Thank you for your recommendation, we have updated the post.

    JH
    John Heidlage Jun 11, 2020

    I was getting that no dist installed message when trying to call wsl from cmd prompt. I opened up powershell and ran the same cmd and ubuntu started right up. Dunno if that helps any but figured I’d say something.

    Reply
      SW
      Shane Warren Author Jun 11, 2020

      Thank you for suggesting that, added to the article.

        JH
        John Heidlage Jun 18, 2020

        So I got a new workstation and had my sys admin enable/install WSL1 only as our AV software isn’t compatible w/ Windows 10 latest version and I ran into this error again. I installed ubuntu and then fired up windows terminal but it didn’t recognize the distro. Running wsl, bash, ubuntu, etc. from pwsh with no luck. Finally i launched ubuntu directly from the Microsoft Store. It launched a bash shell which said it was installing ubuntu and after that completed, I can run wsl command as expected. Wacky.

    BS
    Bernard Staniforth Sep 6, 2020

    Hi just to add another situation. It is easy to forget (if befuddled like I was earlier) when I was ssh ing fron BSD NAS box to win 10 running sshd got the WSL no dist warning after Id been using it fine for ages.

    Solution win apps like the KALI linux I had from MS store default installation to one user and I was logged in as someone else, doh!

    To fix go back to user who has it open store , sign out sign in as the other user click install. Log in as other user ssh from nix works, tadah…

    Reply
    CR
    Christopher Richmond Oct 31, 2021

    My issue ended up being missing a DEFAULT setting for my distro.
    wsl –setdefault Ubuntu-18.04 did the trick

    Reply
    FD
    Federico Giulio D'Ostuni Oct 25, 2022

    WSL2, installed and run Debian but still get the message “There are no running distributions” trying to reinstall: “Debian GNU/Linux is already installed” setting Debian as default distro: “There is no distribution with the supplied name”. LxssManager was not running, I started but then it will stop minutes after. Do I need to install Ubuntu aside Debian to make it works?