Score:0

Can't launch Gnome desktop from Ubuntu terminal running under WSL2

mz flag

I've gone through the process of installing WSL2 on a Windows 11 laptop and can successfully run, for example, GUI-type LibreOffice apps from the Terminal command line.

So far, so good.

Now I would like to try using Gnome.

I've installed Gnome desktop using:

sudo tasksel install ubuntu-desktop

... but after rebooting I get messages such as:

<3>WSL (1408) ERROR: UtilTranslatePathList:2671: Failed to translate C:\WINDOWS\system32
David avatar
cn flag
A quick search brings up this Microsoft web site. https://github.com/microsoft/WSL/issues/9360
Score:1
ec flag

WSL is not made to run a full Linux Desktop environment, but it can run single graphical applications in a single window.

If you are looking for installing and running a complete Ubuntu desktop on Windows with minimal effort, take a look at Multipass from Canonical and add a Desktop enviroment to the base installation.

Score:1
vn flag

The error that you mention seems unrelated to you trying to run Ubuntu Desktop under WSL.

That error is typically caused by a combination of:

  • Upgrading to a recent release of WSL
  • A directory that doesn't exist being in your Windows path.

In Ubuntu:

powershell.exe -c '$env:PATH' | tr ';' '\n'
  • Look for a directory in that list that doesn't exist in Windows.
  • Go to the Edit the system environment variables Windows setting
  • Press the Environment Variables button

Remove the bad directory from the PATH variable. This might be under either your user or the System variable list.


And while I don't necessarily recommend it, for information on running Ubuntu Desktop in Ubuntu on WSL, see the following questions:

Dabbo avatar
mz flag
Thanks for the reply. I've checked all those path directories and they do indeed exist. I've decided not to try installing Ubuntu desktop. I was under misapprehension that that came naturally with WSL2. Don't need it
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.