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”.
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.