Sofia
Sofia

Reputation: 265

<3>WSL (358) ERROR: CreateProcessParseCommon:789: Failed to translate Z:/

I am having some problems using Windows Subsystem for Linux (Ubuntu 22.04.2 LTS). I need to access a folder I have accessed locally by mapping a network drive.

I have installed both WSL and Ubuntu from the Microsoft App Store. I have been using this system for months and never encountered a problem.

Since yesterday, when trying to open a Linux terminal for the folder in the drive I mapped, I get this error:

<3>WSL (358) ERROR: CreateProcessParseCommon:789: Failed to translate Z:/

I do not encounter the same problem when opening a Linux Terminal in any other folder such as Desktop, or anything local.

I am not familiar with these kinds of errors, so anything to try would help a lot.

Upvotes: 23

Views: 27223

Answers (3)

mneutzner
mneutzner

Reputation: 46

Could it be that you've been using Visual Studio Code in combination with WSL?

I've encountered a similar error message (amongst others) after updating to Visual Studio Code 1.85.1:

<3>WSL (2559) ERROR: CreateProcessParseCommon:708: Failed to translate C:\Program Files\Microsoft VS Code

For me that problem was solved by starting Visual Studio Code from a WSL Terminal:

$ code .

Thereby the VS Code Server got updated automatically:

Updating VS Code Server to version 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Removing previous installation...
Installing VS Code Server for x64 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2)
Downloading: 100%
Unpacking: 100%
Unpacked 1530 files and folders to /home/mneutzner/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2.

Thereafter WSL started successfully and all folders were accessible again.

Upvotes: 2

Superblar
Superblar

Reputation: 146

The Z drive is likely not mounted.

sudo mount -t drvfs Z: /mnt/z

Upvotes: 5

GuruRandapa
GuruRandapa

Reputation: 882

You are most probably using Docker Desktop, Docker Dekstop makes it own distro and sets it as default, this is what causes the issue.

To make the default distro you mount to you can change it using the following command

wsl --list
wsl --setdefault <DISTRO_NAME>

This should solve your issue.

Upvotes: 67

Related Questions