Ubuntu on WSL ERROR: UtilTranslatePathList:2671: Failed to translate

Whenever I launch Ubuntu on WSL, you may get the “UtilTranslatePathList:2671: Failed to translate” error. Here’s a sample error message:

<3>WSL (515) ERROR: UtilTranslatePathList:2671: Failed to translate D:\xpdf-tools-win-4.04\bin64

wsl invalid path ubuntu UtilTranslatePathList

Despite this error, WSL may work fine. But the above error always appears when you start Ubuntu on WSL.

Cause

One or more obsolete entries in the Windows PATH environment variable causes this error. Deleting the bad entry/entries should resolve the issue.

Ubuntu on WSL tries to resolve each entry in the PATH environment variable and throws an error if there is an invalid entry.



Resolution

To resolve the UtilTranslatePathList error when starting Ubuntu on WSL, delete the invalid entries from the PATH environment variable.

  • Open SystemPropertiesAdvanced.exe
  • Click Environment variables
  • Double-click Path under “System variables”
  • Delete the obsolete entries and click OK. In this example, the invalid entry is “D:\xpdf-tools-win-4.04\bin64“, as shown in the screenshot.
  • Double-click Path under “User variables”
  • Delete the obsolete entries and click OK.
  • Click OK, OK.

Alternatively, you can resolve this by appending this section to wsl.conf:

[interop]
appendWindowsPath=false
appendWindowsPath boolean true Setting this key will determine whether WSL will add Windows path elements to the $PATH environment variable.

For more information, check out the Microsoft Learn article Advanced settings configuration in WSL.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Comment