Skip to content
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

Open
Fruitsalad opened this issue Jun 17, 2021 · 8 comments
Open

Wrong usage of wsl --install does not give a helpful error message #7072

Fruitsalad opened this issue Jun 17, 2021 · 8 comments
Labels

Comments

@Fruitsalad
Copy link

Fruitsalad commented Jun 17, 2021

Windows Build Number

10.0.21390.2025

Repro Steps

Type in any of the following commands:

wsl --install when wsl is already installed

wsl --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 and wsl --install <distro>, more specific error messages could be printed such as WSL is already installed! Use "wsl --install -d <dist>" to install a new distribution. and Syntax 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 tried wsl --install ubuntu.

@didymus
Copy link

didymus commented Jun 17, 2021

I'm just getting invalid command line option for --update in every application of it. It's not in the man pages either afaik.

There is indication of a syntax error Invalid command line option: --install. It's just the first line and scrolls the results of --help immediately after.

@Fruitsalad
Copy link
Author

I don't think your issue is related to mine, didymus.
The --install option is currently only available in the preview builds, so the reason you're getting that error message is probably because it's not a feature in the version you have installed.

@markj1069
Copy link

Fruitsalad. Thanks for the insight. I am having the same issue as didymus. The preview build comment clears up the problem.
--Mark

@craigloewen-msft
Copy link
Member

We've fixed this inside of WSL on the Microsoft Store
https://docs.microsoft.com/en-us/windows/wsl/store-release-notes#04710

Leaving this issue open to keep tracking it!

@DoctorWho8
Copy link

DoctorWho8 commented Oct 14, 2021

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.

@benhillis
Copy link
Member

@DoctorWho8 - yes your existing images will continue to work with the preview. Please ask away and we can improve our docs!

@Biswa96
Copy link

Biswa96 commented Oct 14, 2021

Will the fixes from Store-d WSL Preview be imported to Windows built-in WSL?

@DoctorWho8
Copy link

@DoctorWho8 - yes your existing images will continue to work with the preview. Please ask away and we can improve our docs!

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants