修复:/bin/dbus-launch异常终止,没有任何错误消息和解决方案

时间:2020-01-09 14:16:33  来源:igfitidea点击:

通过SSH隧道X,在基于CentOS/RHEL的远程主机上执行以下命令,以在本地桌面上显示:

ssh -X [email protected] xeyes & firefox &

报错:

Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details – 1: Failed to get connection to session: /bin/dbus-launch terminated abnormally without any error message)

如何在新格式化/安装的RHEL或CentOS Linux 6.x服务器上解决此错误?

您需要安装D-Bus。它只不过是消息总线系统,这是应用程序相互通信的一种简单方法。除了进程间通信外,D-Bus还可以帮助协调过程生命周期。它使编写单个实例应用程序或守护程序以及在需要它们的服务时按需启动应用程序和守护程序变得简单而可靠。您还需要在基于CentOS/RHEL的系统上安装字体。

修复/bin/dbus-launch异常终止而在CentOS/RHEL上没有任何错误消息的情况

执行以下yum命令以安装D-Bus和字体:

$ sudo yum install dbus-x11

输出示例:

Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.tummy.com
* epel: mirror.steadfast.net
* extras: centos-mirror.jchost.net
* updates: centos.hostingxtreme.com
Setting up Install Process
Installed size: 28 k
Is this ok [y/N]: y
Downloading Packages:
dbus-x11-1.2.24-7.el6_3.x86_64.rpm                                                  |  40 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:dbus-x11-1.2.24-7.el6_3.x86_64                                                        1/1 
  Verifying  : 1:dbus-x11-1.2.24-7.el6_3.x86_64                                                        1/1 
 
Installed:
  dbus-x11.x86_64 1:1.2.24-7.el6_3                                                                         
 
Complete!

要安装字体,请执行:

$ sudo yum groupinstall 'Fonts'

现在,您可以通过ssh运行X隧道:

$ ssh -X [email protected]
$ xeyes
$ firefox