Fix by error

siddardhareddykvc 0 Reputation points
2024-04-18T11:47:01.0866667+00:00

<3>WSL (11) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\91798

<3>WSL (11) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH\

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\91798\AppData\Local\Programs\Python\Python310\Scripts\

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\91798\AppData\Local\Programs\Python\Python310\

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\91798\AppData\Local\Microsoft\WindowsApps

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\CodeBlocks\MinGW\bin

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate F:\Microsoft VS Code\bin

<3>WSL (11) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\91798\Desktop\Microsoft VS Code\bin

Processing fstab with mount -a failed.

Failed to mount C:, see dmesg for more details.

Failed to mount D:, see dmesg for more details.

Failed to mount S:, see dmesg for more details.

<3>WSL (11) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2

<3>WSL (11) ERROR: CreateProcessEntryCommon:505: execvpe /bin/sh failed 2

<3>WSL (11) ERROR: CreateProcessEntryCommon:508: Create process not expected to return

can you resolve this wsl command error>

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,545 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ABDULLAH CHAUDHARY 0 Reputation points
    2024-04-18T17:42:38.3233333+00:00

    Sure, I can help you with that. The errors you’re seeing are related to the Windows Subsystem for Linux (WSL) having issues with translating Windows paths and mounting drives. Here are some steps you can take to resolve these issues:

    Failed to Translate Paths: This error usually occurs when there are obsolete entries in your system’s PATH environment variable1. You can resolve this by:

    Opening **`SystemPropertiesAdvanced.exe`**
    
       Clicking on **`Environment variables`**
      
          Double-clicking **`Path`** under **`System variables`**
         
             [Deleting the obsolete entries and clicking ](https://www.winhelponline.com/blog/ubuntu-wsl-utiltranslatepathlist-failed-translate/)**[`OK`](https://www.winhelponline.com/blog/ubuntu-wsl-utiltranslatepathlist-failed-translate/)**[1](https://www.winhelponline.com/blog/ubuntu-wsl-utiltranslatepathlist-failed-translate/)
            
            **[getpwuid(0) failed 2](https://superuser.com/questions/1761555/3wsl-12-error-createprocessentrycommon570-execvpe-usr-bin-zsh)**[: This error might occur if the default shell is not properly set](https://superuser.com/questions/1761555/3wsl-12-error-createprocessentrycommon570-execvpe-usr-bin-zsh)[2](https://superuser.com/questions/1761555/3wsl-12-error-createprocessentrycommon570-execvpe-usr-bin-zsh). You can try setting it to bash using the command: **`wsl ~ -e chsh`**. [Set it to ](https://www.winhelponline.com/blog/ubuntu-wsl-utiltranslatepathlist-failed-translate/)**[`/usr/bin/bash`](https://www.winhelponline.com/blog/ubuntu-wsl-utiltranslatepathlist-failed-translate/)**[ and then try starting again](https://www.winhelponline.com/blog/ubuntu-wsl-utiltranslatepathlist-failed-translate/)[2](https://superuser.com/questions/1761555/3wsl-12-error-createprocessentrycommon570-execvpe-usr-bin-zsh).
            
            **[Failed to Mount Drives](https://linuxnightly.com/mount-and-access-hard-drives-in-windows-subsystem-for-linux-wsl/)**[: If WSL is unable to mount your drives (C:, D:, S:), you can manually mount them using the following commands](https://linuxnightly.com/mount-and-access-hard-drives-in-windows-subsystem-for-linux-wsl/)[3](https://linuxnightly.com/mount-and-access-hard-drives-in-windows-subsystem-for-linux-wsl/)[4](https://stackoverflow.com/questions/63010412/docker-desktop-with-wsl2-unable-to-start):
            
                First, create a directory for the drive: **`sudo mkdir /mnt/d`**
               
                   Then, mount the drive: **`sudo mount -t drvfs D: /mnt/d`**
                  
                      Replace **`D:`** with the appropriate drive letter.
                     
                     **[CreateProcessEntryCommon Errors](https://stackoverflow.com/questions/77890139/windows-sub-system-for-linux-failure-to-load-by-fstab-has-failed-to-mount)**[: These errors might be related to the default distribution set in WSL](https://stackoverflow.com/questions/77890139/windows-sub-system-for-linux-failure-to-load-by-fstab-has-failed-to-mount)[5](https://stackoverflow.com/questions/77890139/windows-sub-system-for-linux-failure-to-load-by-fstab-has-failed-to-mount). [You can change the default distribution using the command: ](https://stackoverflow.com/questions/77890139/windows-sub-system-for-linux-failure-to-load-by-fstab-has-failed-to-mount)**[`wsl --set-default Ubuntu`](https://stackoverflow.com/questions/77890139/windows-sub-system-for-linux-failure-to-load-by-fstab-has-failed-to-mount)**[5](https://stackoverflow.com/questions/77890139/windows-sub-system-for-linux-failure-to-load-by-fstab-has-failed-to-mount).
                     
    

    Please note that you might need to restart your WSL instance or your computer for these changes to take effect. If the problem persists, please let me know so I can assist you further.

    0 comments No comments

  2. Molly Lu 756 Reputation points Microsoft Vendor
    2024-04-22T05:01:54.98+00:00

    Hello,

    According to the error message you provided, it seems it is related to WSL, try below methods to fix:

    1. Shut down WSL and then reboot machine.
    2. Reinstall the WSL and Docker desktop
    3. Chekc if the vm is running generation 1 or 2, some problems related to Docker happens on Gen2 VM.
    4. ENable virtualization in BIOS
    5. Check if the Linux kernel is available in WSL
    6. Try run below command:

    bcdedit /set hypervisorlaunchtype auto

    Best regards,

    Molly

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it

    0 comments No comments