Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

Windows Subsystem for Linux Has No Installed Distributions

July 8, 2024
in A, Blog, WSL
0
ADVERTISEMENT

Table of Contents

WSL Windows Subsystem for Linux

In some cases, you got this error when open a Linux distribution in WSL. It says you have no installed distributions even you’ve installed them in Microsoft Store.

Bg1763

As you can see in the below screenshot. We’ve installed some Linux instances from the Microsoft Store. But the instances are not shown in the WSL in command line.

Bg1764

Before you move forward, let’s check Windows Machine Platform is installed. If it’s not enabled, let’s turn it on from Turn Windows features on or off.

Bg1765

Alternatively, you can try to re-enable Virtual Machine Platform and Windows Subsystem for Linux using PowerShell. Let’s open PowerShell (elevated mode) then run the below commands then restart your computer.

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Install WSL Linux kernel update package

Once the computer restarted, we need to do one more step to install the Linux kernel update package for WSL. This package with the new kernel update and is required for WSL 2.

1️⃣ Download then install the Linux kernel update package from this link https://aka.ms/wsl2kernel. Or you can download then install the package from this direct download link.

Bg1766

2️⃣ Restart your computer then reinstall any Linux distribution to verify it works.

3️⃣ Get the list of available distributions using the command wsl -l -o.

PS C:\Users\admin> wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.

NAME               FRIENDLY NAME
Ubuntu             Ubuntu
Debian             Debian GNU/Linux
kali-linux         Kali Linux Rolling
SLES-12            SUSE Linux Enterprise Server v12
SLES-15            SUSE Linux Enterprise Server v15
Ubuntu-18.04       Ubuntu 18.04 LTS
Ubuntu-20.04       Ubuntu 20.04 LTS
OracleLinux_8_5    Oracle Linux 8.5
OracleLinux_7_9    Oracle Linux 7.9

4️⃣ Reinstall the Linux distribution with the command wsl –install <distribution>.

PS C:\Users\admin> wsl --install ubuntu
Ubuntu is already installed.
Launching Ubuntu...

5️⃣ The first time you launch a newly installed Linux distribution, a console window will open, and you’ll be asked to wait for a minute or two for files to de-compress and be stored on your PC. 

You will then need to create a user account and password for your new Linux distribution.

Bg1767

Get the list of installed distributions and running state:

PS C:\Users\admin> wsl -l -v
NAME      STATE           VERSION
* Ubuntu    Running         2
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Move WSL to Another Machine or Drive in Windows

Next Post

How to Change the Default Distribution in Windows Subsystem for Linux

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory