1
0 Comments

I am attempting to set up WSL 2. In order to do so, I completed the following steps:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

“Referring to the instructions at https://docs.microsoft.com/en-us/windows/wsl/wsl2-install, the following task is to enable a distro to use WSL2 instead of WSL1. This requires running the command wsl –set-version <Distro> 2. I attempted to do so, replacing <Distro> with Ubuntu, but encountered the following error message:”

Invalid command line option: --set-version

I am uncertain if WSL2 is installed on my system since I received an error message.

My operating system is Windows 10 Build 18362.356.

Askify Moderator Edited question May 2, 2023