wsl --install
## Downloading: Windows Subsystem for Linux 2.6.1 ## Installing: Windows Subsystem for Linux 2.6.1 ## Windows Subsystem for Linux 2.6.1 has been installed. ## Installing Windows optional component: VirtualMachinePlatform ## ## Deployment Image Servicing and Management tool ## Version: 10.0.26100.5074 ## ## Image Version: 10.0.26100.6899 ## ## Enabling feature(s) ## [==========================100.0%==========================] ## The operation completed successfully. ## The requested operation is successful. Changes will not be effective until the system is rebooted. ## The requested operation is successful. Changes will not be effective until the system is rebooted.
wsl --list --online
## The following is a list of valid distributions that can be installed. ## Install using 'wsl.exe --install <Distro>'. ## ## NAME FRIENDLY NAME ## AlmaLinux-8 AlmaLinux OS 8 ## AlmaLinux-9 AlmaLinux OS 9 ## AlmaLinux-Kitten-10 AlmaLinux OS Kitten 10 ## AlmaLinux-10 AlmaLinux OS 10 ## Debian Debian GNU/Linux ## FedoraLinux-43 Fedora Linux 43 ## FedoraLinux-42 Fedora Linux 42 ## SUSE-Linux-Enterprise-15-SP7 SUSE Linux Enterprise 15 SP7 ## SUSE-Linux-Enterprise-16.0 SUSE Linux Enterprise 16.0 ## Ubuntu Ubuntu ## Ubuntu-24.04 Ubuntu 24.04 LTS ## archlinux Arch Linux ## kali-linux Kali Linux Rolling ## openSUSE-Tumbleweed openSUSE Tumbleweed ## openSUSE-Leap-16.0 openSUSE Leap 16.0 ## Ubuntu-20.04 Ubuntu 20.04 LTS ## Ubuntu-22.04 Ubuntu 22.04 LTS ## OracleLinux_7_9 Oracle Linux 7.9 ## OracleLinux_8_10 Oracle Linux 8.10 ## OracleLinux_9_5 Oracle Linux 9.5 ## openSUSE-Leap-15.6 openSUSE Leap 15.6 ## SUSE-Linux-Enterprise-15-SP6 SUSE Linux Enterprise 15 SP6
wsl --install -d Ubuntu
## Downloading: Ubuntu ## Installing: Ubuntu ## Distribution successfully installed. It can be launched via 'wsl.exe -d Ubuntu' ## Launching Ubuntu... ## Provisioning the new WSL instance Ubuntu ## This might take a while... ## Create a default Unix user account: user ## New password: ******** ## Retype new password: ******** ## passwd: password updated successfully ## To run a command as administrator (user "root"), use "sudo <command>". ## See "man sudo_root" for details.
## The requested operation is successful. Changes will not be effective until the system is rebooted.
Reboot the system as needed.