i installed windows subsystem for linux + now i am gettign the following error <3>WSL (8) ERROR: CreateProcessParseCommon:754: getpwuid(0) failed 2
Processing fstab with mount -a failed.
<3>WSL (8) ERROR: CreateProcessEntryCommon:331: getpwuid(0) failed 2
<3>WSL (8) ERROR: CreateProcessEntryCommon:502: execvpe /bin/sh failed 2
<3>WSL (8) ERROR: CreateProcessEntryCommon:505: Create process not expected to return
To resolve the issue:
The reason for this error could be if the default WSL distribution is set to an incorrect value
Open PowerShell as an administrator.
For e.g if you had installed ubuntu then you can set it as default distribution
Run the command wsl –setdefault Ubuntu to set the default WSL distribution to Ubuntu. Replace Ubuntu with the name of the distribution you want to use.
Restart your computer.
Open PowerShell as an administrator again.
Run the command wsl to start the default WSL distribution.