Forum Discussion
How to install the Linux Windows Subsystem in Windows 11
How to install the Linux Windows Subsystem in Windows 11
Install using Command Prompt
Step 1: Start CMD with administrative privileges.
Step 2:Execute "wsl --install" command.
Step 3:Run "wsl -l -o" to list other Linux releases.
Step 4:You can install your favorite Linux distribution, use "wsl --install -d NameofLinuxDistro."
When the operation is finished, restart your PC.You can start the Linux distribution from your Start menu.
Install Using Windows Features
Step 1:Open the Start menu and type "Windows features" into the search bar and click on "Turn Windows Features On or Off".
Step 2:Tick the "Windows Subsystem for Linux" checkbox and press the “OK” button.
Step 3:When the operation is complete, you will be asked to restart your computer.
After that, use the Microsoft Store app and look for the Linux distribution you want to use.
Install the Linux distro of your choice.
Step 4:The Linux distribution can be launched from the Start menu.
73 Replies
- neoxcharaCopper Contributor
@sometimes, guys, do not reply that wsl crashed with 0x800701bc
use this command in cmd: wsl --set-default-version 1
and trya again - Anonymous
To install the Linux Windows Subsystem (WSL) in Windows 11, follow these steps:
- Open the Windows Start menu and search for "Turn Windows features on or off".
- Click on the search result for "Turn Windows features on or off".
- Scroll down to the "Windows Subsystem for Linux" option and check the box next to it.
- Click the "OK" button to confirm and start the installation process.
- Wait for the installation to complete and then restart your computer.
After your computer restarts, you'll be able to use the Linux Windows Subsystem on Windows 11. You can install Linux distributions from the Microsoft Store or by downloading a distribution from the official website and manually installing it using PowerShell. To use the Linux terminalhttps://chatgpt4online.org/ open the Start menu and search for the name of the Linux distribution you installed. Good Luck!
- collinsj6871Copper ContributorSo, do we have to install the subsystem or is already on my Windows 11 Desktop?
- Barry_BazzaBrass Contributor
- AKIMFIron ContributorDid I something wrong with my wsl ubuntu installation?
Linux is running, but gets errors cloning from github out of the box.
Like "fatal: unable to access 'https://github.com[..]" - MikeMike1910Copper Contributor
Everything lines up and looks good but when I try to install AISLERIOT
Sudo apt install Aisleriot It looks good
Then I type Aisleriot to open NOTHING.
When I look in the search Nothing. I did Linux on several PCs but this was first Lenovo. Any thought's Thanks
- kaushik_acharyaCopper Contributor
I am unable to install WSL using the command prompt in Windows 11.
wsl --install command throws the following error:
An error occurred in the secure channel support
I checked Security section under Internet properties.
TLS 1.0, 1.1, 1.2, 1.3 all are enabled.
I searched over the internet for a solution but couldn't find any.
Pre-requisites:
Are there any pre-requisites that needs to be set before running the wsl install command in the command prompt?
Is it necessary to enable the following as a pre-requisite in the Windows Features:
- Windows Hypervisor Platform
- Windows Subsystem for Linux
https://learn.microsoft.com/en-us/windows/wsl/install
I can't see any such pre-requisite mentioned in the above doc. Rather it says
This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux.
Thanks in advance.
UPDATE:
- I managed to install WSL using the alternative approach i.e., using Windows Features.
- The probable reason (I think) for the issue mentioned above in this post is because of outdated WSL2 linux kernel package which can be updated from https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package.
- Thanks to the authors of the comments in this discussion thread whose suggestions helped me in resolving the issue.
- Pi_punCopper Contributor
solution for this problem
- Fuse_EngineCopper Contributor
Hi, I want to install Kali Linux. When I enter "wsl --install -d Kali Linux", it give me: "Copyright (c) Microsoft Corporation. All rights reserved.
Usage: wsl.exe [Argument]
Arguments:
--install <Options>
Install Windows Subsystem for Linux features. If no options are specified,
the recommended features will be installed along with the default distribution.
To view the default distribution as well as a list of other valid distributions,
use 'wsl --list --online'.
Options:
--distribution, -d [Argument]
Specifies the distribution to be downloaded and installed by name.
Arguments:
A valid distribution name (not case sensitive).
Examples:
wsl --install -d Ubuntu
wsl --install --distribution Debian
--list, -l [Options]
Lists distributions.
Options:
--online, -o
Displays a list of available distributions for install with 'wsl --install'.
--help
Display usage information." So I don't know what to do. Pls help me.- AmitB790Copper ContributorTry using "wsl --install -d kali-linux"
- Barry_BazzaBrass Contributor
Fuse_Engine https://apps.microsoft.com/store/detail/kali-linux/9PKR34TNCV07?hl=en-us&gl=US
- yalooshCopper Contributor
Hello
on any command i'm running on the system, I'm getting:
ping: socket: Operation not permitted
I tried with sudu also, but nothing happen
- drew15251Copper Contributor
ammarjaved I tried installing Ubuntu and Ubuntu 18.04 LTS. Both apps when I load them say "Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed."
I tried downloading one from the command prompt and one from the Windows Store. Has anyone else experienced this problem?- Barry_BazzaBrass Contributor
drew15251 You need to enable WSL (Windows Subsystem for Linux) first!
(external link removed by moderator)