-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL (11) ERROR: UtilTranslatePathList:2671: Failed to translate #9360
Comments
EDIT: Actually the error was because |
@qdm12 and it seems like F does not exist in my machine as well. Is it hardcoded somewhere? |
It's in my PATH environnement variable defined on Windows. Maybe WSL should just ignore non existant path values ? |
Thanks for the tip! although it looks like even after I remove that path and restart WSL, the error persists. |
Did you close and re-open your shell/terminal? Such that the environment variables get reloaded. Otherwise try a reboot? |
@qdm12 Problem solved. Restarting the shell seems to do the trick. Thanks! |
Hi, I have the same problem. I tried to restart the shell and reboot but the problem persists <3>WSL (723) ERROR: UtilTranslatePathList:2671: Failed to translate Z:\home\gianni\dev\gettse |
I had after correct it i fix that error/warning |
cool, just the path environment variable in windows, just delete it in your windows. |
My organization adds network drives to Path via HKCU/Volatile Environment, so I'm not able to remove via the environmental variable to fix this issue. Instead, as @protella mentioned in another issue, I removed Windows Subsystem for Linux via "Apps & features", which reverted to the previous version and removed the error. |
I have the same issue for a
to subst any path to a new drive name, reboot the device, and launch the WSL prompt. |
I had a mystery error where WSL was terminating immediately on startup regardless of The error (caused by SMB network drives being added to PATH thru Volatile Environment at login) gets resolved by appending this section to
|
I met the same problem~ The root cause is D: does not exists when you started windows . How to recur this issue:
solution: make sure all the PATH are available and then restart wsl. $ wsl --shutdown |
I had encountered a similar issue, but in my case, I was getting this error for all windows paths such as Simply restarting the terminal did not work for me. Restarting wsl seemed to fix it for me ( run |
I had same error, seems due to my work's antivirus software Symantec Endpoint Protection, A workaround was to install Ubuntu WSL from the windows store and run via "ubuntu.exe" in the start menu. |
Thank you very much. This solved the problem for me! |
It works and here is a simple one-line command for adding that to the end of
|
Remove the environment variable that causing the problem. Check the user variable and system variable paths. Then reopen the terminal. |
problem is - I do need a PATH to remote share, mounted as Z, in Windows. While WSL dislikes that. |
[interop] |
I have used WSL for some time. After a reboot today, I got these errors and I can no longer use my C disk
It seems that my C drive is no longer mounted.
I have tried mounting it with
How can I solve this? My C drive works just fine in windows as usual. |
check if c is a subfolder of mnt if present if not present or |
Does show c but it looks empty. I tried deleting it and creating a new c directory and mounting but I still get:
Creating a new directory with a different name also gives the same result sadly. A colleague of mine also reported having the same issue as me after a reboot today. |
uname -a |
|
I had what was likely this same issue just now, and the related potential resolutions I found didn't seem to solve the issue:
I believe this started after upgrading to Windows 23H2, and happened on both 2.0.8 and 2.0.9. I tried uninstalling WSL entirely (deregistering the distro, removing the distro + WSL items from Windows Programs, removing the optional feature, rebooting, and then re-running I think this is the relevant part of dmesg when the issue presents itself (for C:), which seems to match with several other threads I've seen about mounting issues, but doesn't seem to explain this specific issue:
Similarly, when trying to manually mount the drive, I get a "No such file or directory" error, even though
Potential mitigation: Another issue suggested trying
in ~/.wslconfig on Windows, then rebooting WSL ( |
Possibly related to #10727? They seem to be having a similar issue, and say it was caused by running |
The same problem started happening for me yesterday. I don't have distrod installed. [2023-11-17 06:36:54.111] Extension version: 0.81.8 |
This looks to have fixed the problem for me:
|
I just changed my JAVA_HOME env variable in windows and rebooted and now the problem is back with WSL not mounting C again! dsmeg
Funny enough though, mounting gives a different error than before:
|
I have now tried reinstalling WSL but it does not work, same result as before, c not mounting. |
This worked for me and my coworkers, thank you! I did have to reboot my laptop for this to take full effect (just wsl --shutdown wasn't sufficient). |
I finally found the solution. It fails when I open via (win 11) terminal. But if I close everything and just open the "old" powershell prompt and type WSL, then it actually works again! I do not understand why and at this moment I'm to afraid to ask. |
It worked for me w/o full reboot. Maybe you needed to wait 8s? |
Now after reboot the problem came back. But I managed to fix it by doing the following steps, maybe it will help someone else: Set up wslconfig with
Steps 1-4 must be done after every reboot it seems, very annoying. I guess it could be put in a powershell command and place it on the desktop, maybe it could be made to run during startup or something. |
It looks like virtio9p has been disabled by default in the latest release: https://github.com/microsoft/WSL/releases/tag/2.0.11 - I guess that's related to this! It seems like this issue is being worked on actively, in that case =) |
This problem still exists for both me and my colleague in 2.0.14.0 |
First time trying to use wsl I ran into the same issues. I checked my paths, removed missing folders from my path statements and still the issue existed. I then installed ubuntu: wsl --install ubuntu I ctrl-d to exit and then typed: wsl I then set ubuntu as the default distro: wsl --set-default ubuntu I suspect the default distro was causing the issue, errors with path appear to be a diversion. Hope this helps somebody. |
The above solution worked for me after following this method #9360 (comment). However some reason I have to keep remounting the driver every time I exit wsl or restart my system. Anyone know how to fix this permanently with out using any band aid fixes? |
I am still having the issue, however restarting WSL from powershell after each reboot still seems to work until the next reboot. |
This method might have helped😎link
|
Why is this issue closed? @Newbie012 |
This method does not work for me as I did not find a path that points to a dir on my external drive |
I had to uninstall the distribution I had installed. Uninstalled from Settings and with the following commands (first command to list, second to uninstall). Then I installed it again and it works.
|
This doesn't work for me. I get the following error now:
|
also need restart wsl |
In my case, I have a C:\ (SSD) and a D:\ (HDD) drive. Today, the D: (HDD) drive did not start correctly, and only the C: (SSD) drive booted up. In my case, I discovered that this error is similar to the WSL 2 terminal telling me "I tried to access the D:\ drive" but could not find the D:\ drive.". So i restarted the PC to fix this error. |
I have a similar setup but no matter if I restart WSL always gives me the error regarding my D drive |
For anyone coming from a Google search... I encountered this problem during Run |
bro try going the the system environment variables and search in system variables (Path) and there must be mentioned delete that and enter again and then restart the system , if not solved do check your bashrc/zshrc as well |
In my case, this error was because of older broken distro still hanging around. You can see list of distro:
You can set default distro:
This worked for me. |
If your
you will receive these errors:
When I commented lines above in My environment: $ cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
C:\Users\bernardo\ubuntu-home /home/bernardo drvfs defaults,metadata,uid=1002 0 0
$ cat /etc/wsl.conf
[boot]
systemd=true
# [automount]
# enabled=false
[network]
generateResolvConf=false
# [interop]
# appendWindowsPath=false My
|
docker-desktop strikes again... |
Version
Microsoft Windows [Version 10.0.22000.1335]
WSL Version
Kernel Version
5.15.79.1-microsoft-standard-WSL2
Distro Version
Release: 20.04
Other Software
Visual Studio Code (1.74.1)
Repro Steps
I'm sorry for the poor reproduction steps, it just happened when I ran
wsl.exe --update
Expected Behavior
Should not throw an error.
Actual Behavior
Getting
<3>WSL (11) ERROR: UtilTranslatePathList:2671: Failed to translate F:\Users\Eliya\AppData\Local\Programs\Microsoft VS Code\bin
every time I open a terminalDiagnostic Logs
Let me know about any information I need to supply.
The text was updated successfully, but these errors were encountered: