Closed fauzie811 closed 5 years ago
It seems reset PATH in /etc/profile. Please delete
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
line in /etc/profile.
This is marked as bug. I'll fix it. Thanks.
I released new release included fixes this.
That new release is copying the profile from the host's /etc directory and so is getting a profile that does not work very well
Oops! Thank you.
The Windows PATH (with .exe-files) doesn't seem to be included for me when I first install Alpine in WSL2.
I ended up starting ubuntu2004 (which had the correct windows paths in the PATH variable, formatted correctly) and copy-pasting the windows related path-directories into ~/.profile
in Alpine.
................ root@DESKTOP-ABCDEFG
∴::::::::::::::::∴ OS: Alpine Linux (on the Windows Subsystem for Linux)
∴::::::::::::::::::∴ Kernel: x86_64 Linux 4.19.84-microsoft-standard
∴::::::::::::::::::::∴ Uptime: 13m
∴:::::::. :::::':::::::∴ Packages: 118
∴:::::::. ;::; ::::::::∴ Shell: ash
∴::::::; ∵ :::::::∴ Disk: / ()
∴:::::. . .::::::∴ CPU: Intel Core i7-6700K @ 8x 4.008GHz
:::::: :::. . :::::: RAM: 3113MiB / 25597MiB
∵:::: ::::::. ::. ::::∵
∵:.. .:;::::::: :::. :::∵
∵::::::::::::::::::::::::∵
∵::::::::::::::::::::::∵
∵::::::::::::::::::::∵
::::::::::::::::::::
∵::::::::::::::::∵
Windows' PATH environment variable is not appended to the WSL. "append-path" is already set to "on".