-
Notifications
You must be signed in to change notification settings - Fork 798
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
Cannot Use Windows EXE From Within WSL 2 #5296
Comments
There are no win32 paths in your |
Something is replacing the path. Try this and post the output: cd ~
grep -i -e 'PATH' .* |
I don't see anything weird there. Is that the root user? |
Resetting the baseline, there is no You can push through this doing a But it would be nice to know what happened here for the collective knowledge-base. No guesses from me. The |
nope. but the root user has the same issue, no win32 in PATH, no explorer.
no
this does it.
too many results with happy to get to the bottom of this. |
Yes. If you don't use
Yeah, wasn't being real serious about that. What is needed is to figure out what steps happened leading up to you not seeing your Windows paths automatically marshalled into WSL (or being blown away after getting there). I don't have any easy guesses to offer unfortunately. |
same for me with node.exe. although node is installed in my windows10 computer. How to set the $PATH to know the paths in windows? DESKTOP-BVRD:/tmp/docker-desktop-root/mnt/host/c/Users/myuser# echo $PATH |
So I had the paths stripped even with the append option enabled using a custom imported distro automatically set up for WSL2 (though I saw this before on WSL1 before upgrade using Pengwin, FedoraRemix, Ubuntu, etc. from Store). I had also turned |
For it was my
instead of
I didn't know $PATH already had content when WLS2 first started, and that it had precisely the Windows Hopefully this will help others. |
For Debian, /etc/profile contributed to this problem. Here is the path definition in /etc/profile
You can delete above lines, then If you would like to keep these lines, you can also append ":$PATH" to each path like below, then
|
I ran into the same issue after upgrading to windows 2004 and WSL2. System32 was in the PATH but I couldn't execute the commands. Running WSL as an administrator solved the issue. |
I had a workaround for WSL1, but the dang /proc/version output changed case and broke my grep expression. Added |
It work |
Where is ".profile"? |
@JimmyBringus in your home folder. So |
explorer.exe should be in path and launch
The text was updated successfully, but these errors were encountered: