[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 that stated: Failed to execute child process “dbus-launch” (No such file or directory) while x-forwarding.

Because of that, I was not allowed to get the graphic interface, and this error is common when you are accessing the GUI 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 5 Comments

  1. Abd

    Super! it worked for me

  2. Maaz

    Command not found

    1. Gagan Mishra

      Can you elaborate more?

  3. Ryan P.

    Worked well for me! I had to run the command “sudo dpkg –configure -a” to correct my dkpg installation before running the command above, but if you need to do that, the system tells you the exact command to run anyways, so it probably didn’t even need to be mentioned in the guide anyways.

Leave a Reply

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.