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, which is interprocess communication that is used to pass information from one application to another process on Linux and Unix-based systems.
By passing a single apt command, you 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 a Debian-based machine: “failed to execute child process “dbus-launch” (No such file or directory) while x-forwarding”.
A man with a tech effusive who has explored some of the amazing technology stuff and is exploring more. While moving towards, I had a chance to work on Android development, Linux, AWS, and DevOps with several open-source tools.