- Open Turn Windows features on or off
- Check Virtual Machine Platform box
- Check Windows Subsystem for Linux box
- Restart
After that update the WSL if any error occurs. To update use wsl --update .
To get the list of Linux Distributions available use
Distros can then be managed via a Command Prompt as per the quick list below:
**List the currently installed distributions**
`wsl --list`
**List the distros available to be installed**
`wsl --list --online`
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
Ubuntu-18.04 Ubuntu 18.04 LTS
Ubuntu-20.04 Ubuntu 20.04 LTS
Ubuntu-22.04 Ubuntu 22.04 LTS
OracleLinux_8_5 Oracle Linux 8.5
OracleLinux_7_9 Oracle Linux 7.9
SUSE-Linux-Enterprise-Server-15-SP4 SUSE Linux Enterprise Server 15 SP4
openSUSE-Leap-15.4 openSUSE Leap 15.4
openSUSE-Tumbleweed openSUSE Tumbleweed
**Install a distro**
Picked `Ubuntu` from the listed names in the **NAME** column on the left:
`wsl --install Ubuntu`
**Set a distro as the default**
`wsl --set-default Ubuntu`
**Start WSL with the default distro**
`wsl`
**To uninstall a distro**
`wsl --unregister Ubuntu`
---
- https://stackoverflow.com/a/76127061/16281582
- https://adamtheautomator.com/windows-subsystem-for-linux/
0 Comments