0

I have installed Ubuntu under WSL. I am now trying to install Ubuntu desktop. I have tried several times. I get many errors such as: Failed to preset unit. Transport endpoint is not connected. Now stuck on 75% for hours. Not a great first experience.

As an amateur I'm not sure what I can add. Installed is Ubuntu 22.04.3 LTS. I then typed in "sudo apt install ubuntu-desktop". It immediately started doing this but occasionally get stuck as follows:

"Failed to reload daemon: Transport endpoint is not connected."

It is now showing 80% so it is still installing but with errors it seems. It is now 5 hours.

Setting up ubuntu-advantage-desktop-daemon (1.10~22.04.1) ...
Failed to reload daemon: Transport endpoint is not connected
Failed to get unit file state for ubuntu-advantage-desktop-daemon.service: Transport endpoint is not connected
Failed to retrieve unit state: Transport endpoint is not connected
ubuntu-advantage-desktop-daemon.service is a disabled or a static unit, not starting it.
Setting up libsm6: amd64 (2:1.2.3-1build2) ...
Gleb
  • 759

1 Answers1

2

Ubuntu running on WSL is not meant to run a full-featured Ubuntu desktop. From the WSL doc, Run Linux GUI apps on the Windows Subsystem for Linux:

Support for GUI apps on WSL does not provide a full desktop experience. It relies on Windows desktop, so installing desktop-focused tools or apps may not be supported. To request additional support, you can file an issue in the WSLg repo on GitHub.

WSL primarily provides a terminal-based Ubuntu / Linux system for development purposes. However, it is possible to launch single graphical apps from WSL, which integrate into the Windows desktop.

Some additional resources to read are:

If you are looking for a full-featured desktop installation, you may better install Ubuntu Desktop in a virtual machine, e.g. using Microsoft's Hyper-V.

NotTheDr01ds
  • 22,082
noisefloor
  • 1,769