[SOLVED] Failed to execute child process “dbus-launch” (No such file or directory) while x-forwarding

After a long time, I have decided to change my desktop environment to XFCE. While making changes on the tty terminal, I got an error which states: Failed to execute child process “dbus-launch” (No such file or directory) while x-forwarding.

Because of that I was not allow to get Graphical Interface, and this error is common when you are acessing screen using WSL2 with kex.

In this article, you will see how to fix the above error by installing dbus-x11 on your Debian or Ubuntu-based machine.

A dbus acronym stands for Desktop Bus is interprocess communication, which is used to pass information from one application to another process on Linux and Unix-based systems. 

By passing single command can resolve this issue in a swift manner:

$ sudo apt install dbus-x11

After a successful installation of dbus-x11, you can try to invoke the command that caused the previous error, and you will find that the error no longer exists on the machine.

That’s all to resolve on Debian based machine “failed to execute child process “dbus-launch” (No such file or directory) while x-forwarding”.

This Post Has 4 Comments

  1. Abd

    Super! it worked for me

  2. Maaz

    Command not found

    1. Gagan Mishra

      Can you elaborate more?

Leave a Reply