xxxxxxxxxx
1) Run PowerShell as administrator
2) Paste this command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3) Restart your PC
4) Run PowerShell as administrator again
5) Paste these two commands:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
6) Restart your PC Again
7) Download the Linux Kernel Update Package from
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
8) Then, run powershell as administrator again and paste this command:
wsl --set-default-version 2
9) Install a distro of your choice from the Microsoft Store (Example Ubuntu, Kali Linux)
OR:
Run this command: wsl --install
NOTE: To Run this command given above, you must be running
Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.
Also, running this command installs Ubuntu by default.
xxxxxxxxxx
# Step 1: Open PowerShell as Administrator
# Press Windows key, type "PowerShell", right-click on "Windows PowerShell" and select "Run as administrator"
# Step 2: Enable WSL feature
# Execute the following command in the PowerShell window and restart your computer when prompted
wsl --install
# Step 3: Install a Linux distribution
# After your computer is restarted, open the Microsoft Store and search for your preferred Linux distribution (e.g., Ubuntu, Debian, Fedora). Select one and click on the "Install" button.
# Step 4: Launch and set up the Linux distribution
# Open the installed Linux distribution from the Start menu. The first launch will take a few moments to set up the environment. You will then be prompted to create a new user and set a password for your Linux environment.
# That's it! You have successfully installed WSL on Windows 11 and a Linux distribution of your choice.
xxxxxxxxxx
# Install Ubuntu WSL without Windows Store
https://stackoverflow.com/a/64872285
WSL installers
xxxxxxxxxx
<ul>
<li><a href="https://aka.ms/wslubuntu" data-linktype="external">Ubuntu</a></li>
<li><a href="https://aka.ms/wslubuntu2204" data-linktype="external">Ubuntu 22.04 LTS</a></li>
<li><a href="https://aka.ms/wslubuntu2004" data-linktype="external">Ubuntu 20.04</a></li>
<li><a href="https://aka.ms/wslubuntu2004arm" data-linktype="external">Ubuntu 20.04 ARM</a></li>
<li><a href="https://aka.ms/wsl-ubuntu-1804" data-linktype="external">Ubuntu 18.04</a></li>
<li><a href="https://aka.ms/wsl-ubuntu-1804-arm" data-linktype="external">Ubuntu 18.04 ARM</a></li>
<li><a href="https://aka.ms/wsl-ubuntu-1604" data-linktype="external">Ubuntu 16.04</a></li>
<li><a href="https://aka.ms/wsl-debian-gnulinux" data-linktype="external">Debian GNU/Linux</a></li>
<li><a href="https://aka.ms/wsl-kali-linux-new" data-linktype="external">Kali Linux</a></li>
<li><a href="https://aka.ms/wsl-sles-12" data-linktype="external">SUSE Linux Enterprise Server 12</a></li>
<li><a href="https://aka.ms/wsl-SUSELinuxEnterpriseServer15SP2" data-linktype="external">SUSE Linux Enterprise Server 15 SP2</a></li>
<li><a href="https://aka.ms/wsl-SUSELinuxEnterpriseServer15SP3" data-linktype="external">SUSE Linux Enterprise Server 15 SP3</a></li>
<li><a href="https://aka.ms/wsl-opensuse-tumbleweed" data-linktype="external">openSUSE Tumbleweed</a></li>
<li><a href="https://aka.ms/wsl-opensuseleap15-3" data-linktype="external">openSUSE Leap 15.3</a></li>
<li><a href="https://aka.ms/wsl-opensuseleap15-2" data-linktype="external">openSUSE Leap 15.2</a></li>
<li><a href="https://aka.ms/wsl-oraclelinux-8-5" data-linktype="external">Oracle Linux 8.5</a></li>
<li><a href="https://aka.ms/wsl-oraclelinux-7-9" data-linktype="external">Oracle Linux 7.9</a></li>
<li><a href="https://github.com/WhitewaterFoundry/WSLFedoraRemix/releases/" data-linktype="external">Fedora Remix for WSL</a></li>
</ul>
https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions
xxxxxxxxxx
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart