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

Please explain difference between store, distribution, and wsl --update wsl versions #10551

Closed
rfay opened this issue Sep 27, 2023 · 6 comments
Closed
Labels

Comments

@rfay
Copy link

rfay commented Sep 27, 2023

Is your feature request related to a problem? Please describe.

I have been baffled for some time by the various recipes for installing or maintaining WSL2. Some people/recipes say that you have to install from the store. Others say you have to download it. Often wsl --update and wsl --install are fine. A recent issue said that wsl.exe might be in 3 different places on the Windows side.

Is any of this true? Surely there can be one wsl.exe distributed in different ways.

In writing the DDEV docs for WSL2 install I tell people to install with wsl --install and then go install it from the store. Is that really reasonable?

Describe the solution you'd like

  1. One wsl.exe using multiple distribution techniques but with the same behavior would be the best outcome.
  2. Otherwise... please sort out this confusion in this issue or in docs somewhere? Thanks!

Describe alternatives you've considered
Live on in confusion.

@blakeduffey
Copy link

In writing the DDEV docs for WSL2 install I tell people to install with wsl --install and then go install it from the store. Is that really reasonable?

It is not :)

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 3, 2023

@rfay: The recommended method is always to use wsl.exe --install.

If the Windows version supports store WSL, then wsl --install will install Store WSL. If not, it will install inbox WSL.
wsl --install will also install ubuntu and all required optional components to run WSL.

@OneBlue OneBlue closed this as completed Oct 3, 2023
@rfay
Copy link
Author

rfay commented Oct 4, 2023

Thank you @OneBlue - Why were three different WSL.exe installations mentioned in the recent issues?

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 6, 2023

Thank you @OneBlue - Why were three different WSL.exe installations mentioned in the recent issues?

C:\windows\system32\wsl.exe is the inbox entry point. It will always call the correct WSL version based on what's installed (inbox vs store)

C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\wsl.exe is the Store entry point for WSL < 2.0.0. It's still used for backwards compatibility but should not be called directly

C:\Program Files\WSL\wsl.exe is the WSL entry point for WSL >= 2.0.0. It can be called directly, but it's often better to call the inbox entry point instead

@rfay
Copy link
Author

rfay commented Oct 7, 2023

Thank you! I hope there will be more consistency in the future.

I should be able to completely remove references to the MS Store version in DDEV Docs right? Just tell them to wsl --install, not need for then installing from store? Currently it says to wsl --install, then...

Visit the Microsoft Store and install the updated “Windows Subsystem for Linux” and click “Open”. It will likely prompt you for a username and password for the Ubuntu WSL2 instance it creates.

That's completely obsolete right?

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 20, 2023

That's completely obsolete right?

Not really, installing via the store is still supported. Under the hood this will install the latest WSL release and we'll continue to support that.

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

3 participants