-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Attempting to install via wsl --import
fails
#606
Comments
wsl --import
fails
I am unfortunately not able to reproduce that (with the same hash for nixos-wsl.tar.gz, I am however already on WSL 2.4.5.0). Usually when WSL just prints its help text, that means that there's some sort of error with the syntax of the command you ran, not with a distro. I copy-pasted your command (just replaced the name, because NixOS is already taken on my system) and that run through just fine:
As this seems to be a general WSL problem to me, rather than a NixOS one, you could try opening an issue in microsoft/WSL. Maybe someone there knows what might be the problem here |
Figured it out and it's a subtle syntax issue. So this command does not work: wsl --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz --version 2 But this one does. wsl --import NixOS $env:USERPROFILE\NixOS nixos-wsl.tar.gz --version 2 It's the leading backslash that causes |
If there is a leading backslash `wsl` will fail with help-text. Fixes nix-community#606
Originally I thought this was an issue with my name containing a space, but nope after removing the leading backslash it works fine. No surrounding with quotes needed either if I'm using |
Bug description
Attempting to install a fresh copy of NixOS-WSL fails with
wsl
emitting help-text. Tried creating~\NixOS\
myself then running the command with no change.To Reproduce
WSL version
Corresponds to this release
The text was updated successfully, but these errors were encountered: