Invalid Command Line Option: --Set-Version

I'm trying to get WSL 2 running. To wit I did the following:

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

The next step, according to , is to make a distro use WSL2 vs WSL1. To do that you need to do wsl --set-version <Distro> 2. I tried that, substituting <Distro> for Ubuntu and got the following error:

Invalid command line option: --set-version

So I guess I don't have WSL2 installed idk.

I'm running Windows 10 Build 18362.356.

0

1 Answer

I'm running Windows 10 Build 18362.356.

You need to be on build 18917 or greater, and already have WSL 1 installed

See

Invalid command line options #419

and

WSL 2 install documentation updated to include links to instructions on how to install WSL 1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest