Skip to content

Failed to translate C:\WINDOWS after creating Ubuntu 24.04 distribution  #38

@pravic

Description

@pravic

I tried to register an Ubuntu 24.04 LTS and I get errors when I try to start it.

Steps:

  • Add new distribution
  • Select distro source: Docker Hub
  • Docker image: ubuntu:24.04
  • Register distro
  • wsl -d Ubuntu-2404docker

And I get this:

Full log
D:\>wsl -d Ubuntu-2404docker                                                                                                          
<3>WSL (12) ERROR: CreateProcessParseCommon:711: Failed to translate D:\                                                              
<3>WSL (12) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2                                                                 
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Common Files\Oracle\Java\javapath           
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32                                                
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS                                                         
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem                                           
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\                        
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\ProgramData\chocolatey\bin                                      
<3>WSL (12) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yuryw\AppData\Local\Microsoft\WindowsApps                 
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 C:\, see dmesg for more details.                                                                                      
Failed to mount D:\, see dmesg for more details.                                                                                      
                                                                                                                                      
<3>WSL (12) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2                                                                 
<3>WSL (12) ERROR: CreateProcessEntryCommon:505: execvpe /bin/sh failed 2                                                             
<3>WSL (12) ERROR: CreateProcessEntryCommon:508: Create process not expected to return                                                

Tried to register Ubuntu 21.10 both via "Supported distro list" and via ubuntu:21.10 - works fine.

P.S. Also tried to register ubuntu:20.04, ubuntu:22.04, ubuntu:23.10 - same error. So, I guess it's not specific to a version but easyWSL has to support a particular distro in some way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions