Fix: Windows Subsystem For Linux has no Installed Distributions Error



Updated July 2024: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
  1. Download and install the repair tool here.
  2. Let it scan your computer.
  3. The tool will then repair your computer.

Bash is a Unix shell and a form of command language first introduced in 1989. It has been widely used as a standard connection shell for Linux and MacOS. Although it is mainly seen under Linux and Marcos, there is a version that can be installed under Windows 10. However, many complaints have been received from users who cannot use Bash on Windows 10, and an error “Windows subsystem for Linux has no distributions installed” is displayed when you try to do so.

Manual installation of the distribution system

If some distributions cannot be downloaded and installed automatically, we can try to install them manually from the command line. Therefore, in this step, we will execute a command to install the large distributions. For that:

  • At the same time, press the “Windows” + “R” keys to open the Run command prompt.
  • Type “cmd” and press “Shift” + “Ctrl” + “Enter” to assign administrator rights.
  • Type the following command and press Enter.

lxrun /install

  • This will trigger the download from the Microsoft Store, press “Y” to start the download at the prompt.
  • Check if the problem persists.

Note: This command can also be executed from the Power Shell.

July 2024 Update:

You can now prevent PC problems by using this tool, such as protecting you against file loss and malware. Additionally, it is a great way to optimize your computer for maximum performance. The program fixes common errors that might occur on Windows systems with ease - no need for hours of troubleshooting when you have the perfect solution at your fingertips:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

Download Now

It may take a few minutes to install…

He can wait silently for you to press a key once it is ready, so you can press the Backspace key every 15 seconds to check if it is ready.

Update your Linux software

This is a good time to update the software. Follow the instructions below to update your software with the apt command.

Like Ubuntu, WSL uses APT (Advanced Packaging Tool) to manage the software packages. You can use the apt command to find, download and install software from the command line. It automatically manages your software dependencies for you so that when one program depends on a particular version of another program, both are installed and updated.

All apt commands that make changes to your system must be executed as root. If you are logged in as a normal user (as you should normally be), you can run a program as root by prefixing it with the sudo command (“superuser do”). It asks you to enter your password, and your program will run as root.

sudo apt update

The password of hope:

Updates are downloaded, but nothing is installed or updated yet. To update all available packages, run:

sudo apt upgrade

WSL installation

Adding a Linux environment is quite easy on Windows 10. Activate the function in the Control Panel, restart the computer and retrieve the desired distribution from the Microsoft Store.

If the WSL function is not available, you are probably using a 32-bit version of the operating system instead of the required 64-bit version.

This procedure does not work for Windows 10 LTSC and Windows Server because the Store application is missing. Therefore, you must download and install the Appx package yourself.

There is no web browser available under Server Core, and you can only enable this feature from the command line. Therefore, you will use a pure PowerShell solution in this case, which of course works everywhere else.

To add the subsystem to a PowerShell session with administrative privileges, type this command :
Enable WindowsOptionnel -Online functionality -FunctionalityNameMicrosoft Windows Linux subsystem

Enable WindowsOptionnel -Online functionality -FunctionalityNameMicrosoft Windows Subsystem Linux

Under Windows Server 2019, the following cmdlet also works:
Windows installation Functionality – Microsoft Windows name Linux subsystem

Windows installation Functionality – Microsoft Windows name Linux subsystem

https://stackoverflow.com/questions/44829878/trying-to-use-bash-on-windows-and-got-no-installed-distributions-message



Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here

Scroll to Top