MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.92k stars 579 forks source link

wsl --version advice from learn docs => Invalid command line option #2001

Closed xela-trawets closed 3 months ago

xela-trawets commented 3 months ago

Type of issue

default installation issue

Feedback

https://learn.microsoft.com/en-us/windows/wsl/basic-commands#check-wsl-version provides the powershell command wsl --version

That results in Invalid command line option: --version On an ubuntu 24,04 install from windows store on a fresh Windows 11

Page URL

https://learn.microsoft.com/en-us/windows/wsl/basic-commands#set-wsl-version-to-1-or-2

Content source URL

https://github.com/MicrosoftDocs/wsl/blob/main/WSL/basic-commands.md

Author

@craigloewen-msft

Document Id

ea2f6a7b-28f2-2af8-e8fc-7f7b3624f88a

xela-trawets commented 3 months ago

Solved by wsl --install (I got here trying to fix missing wslg in ubuntu 24.04 from the store).

xela-trawets commented 3 months ago

After wsl --install wsl --version works