-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong usage of wsl --install
does not give a helpful error message
#7072
Comments
I'm just getting invalid command line option for There is indication of a syntax error |
I don't think your issue is related to mine, didymus. |
Fruitsalad. Thanks for the insight. I am having the same issue as didymus. The preview build comment clears up the problem. |
We've fixed this inside of WSL on the Microsoft Store Leaving this issue open to keep tracking it! |
Can this preview be installed, and not cause problems to known working releases of WSL images? For example I read the pages on the store and I still have questions. Lots of questions. |
@DoctorWho8 - yes your existing images will continue to work with the preview. Please ask away and we can improve our docs! |
Will the fixes from Store-d WSL Preview be imported to Windows built-in WSL? |
Great! But the store function complains that I do not have an applicable device connected. Huh? I'm viewing the store box on the system. The accounts page confirms it is present. |
Windows Build Number
10.0.21390.2025
Repro Steps
Type in any of the following commands:
wsl --install
when wsl is already installedwsl --install ubuntu
or any other misuse of
wsl --install
Expected Behavior
I expect WSL to indicate that I made a syntax error.
In the specific case of
wsl --install
andwsl --install <distro>
, more specific error messages could be printed such asWSL is already installed! Use "wsl --install -d <dist>" to install a new distribution.
andSyntax error! Did you mean to run "wsl --install --distribution {the distro they typed in}"?
.Actual Behavior
WSL prints the --help output without any indication that there was a syntax error. I seriously thought that
--install
was just broken when I triedwsl --install ubuntu
.The text was updated successfully, but these errors were encountered: