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
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
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