Check current PATH variable
echo $PATH
You may see paths from your Windows setup such as “/mnt/c/Program Files/…..”
WSL utilizes the file /etc/wsl.conf to configure its setup. Add the following settings to the file to ignore Windows path variable.
[interop]
appendWindowsPath = false
For effect restart the WSL instance
wsl --shutdown
Or
wsl -t <Distribution>