Closed tomykaira closed 2 years ago
oops, thanks for the catch again! Maybe I'll fix the doc with sudo -E
.
Unfortunately, this didn't reproduce in my environment. In general, sudo
should not affect .exe
interop. Perhaps you once enabled distrod by distrod enable
and disabled it after it? In that case, this might happen.
Sorry for late response.
Perhaps you once enabled distrod by distrod enable and disabled it after it? In that case, this might happen.
I forgot the steps I took, but this was possible. Thank you for checking.
I followed the steps in Option 2 of README.
Step 1, downloading and installing scripts succeeded.
In step 2, I got this error.
I checked
whoami.exe
andwslpath
, and I found these commands do not work withsudo
.This is fixed by running
/opt/distrod/bin/distrod enable
,wsl --termiante Ubuntu
, andwsl zsh
, then run/opt/distrod/bin/distrod enable --start-on-windows-boot
again. Here these commands return the same results with and withoutsudo
.I suggest to put instructions to restart WSL2 for
--start-on-windows-boot
if it fails.