Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't download linux with wsl, Invalid command line option: --install

wsl --install --online

Invalid command line option: --install
Copyright (c) Microsoft Corporation. All rights reserved.

I need to see the linux versions I can download but I get this output. Why ?

like image 791
selcuk Avatar asked Dec 29 '20 11:12

selcuk


People also ask

How do you fix the Windows Subsystem for Linux optional component is not enabled please enable it and try again?

The Windows Subsystem for Linux optional component is not enabled: Open Control Panel -> Programs and Features -> Turn Windows Feature on or off -> Check Windows Subsystem for Linux or using the PowerShell cmdlet mentioned at the beginning of this article.

Does WSL install Linux?

Install Linux Subsystem on Windows ServerWSL is available for installation on Windows Server 2019 (version 1709) and later.

How install Linux on Windows WSL2?

To install WSL2 on Windows 10, open Command Prompt as admin and run “wsl –install.” The command will install all the WSL2 components and the Ubuntu Linux distro. To install a specific distro, run “wsl –install -d DISTRO-NAME.” To update the WSL2 kernel, run the “wsl –update” command.


1 Answers

Check which build of windows you are on. I had this error when I was on builds less than 18917. You can find this in your "System Information" application

like image 144
amirmahdi666 Avatar answered Oct 21 '22 16:10

amirmahdi666