pkg info dbus dbus-1.10.14_2 Name : dbus Version : 1.10.14_2 Installed on : Tue May 2 20:00:40 2017 CST Origin : devel/dbus Architecture : FreeBSD:11:amd64 Prefix : /usr/local Categories : gnome devel Licenses : GPLv2 Maintainer : gnome@FreeBSD.org WWW : http://www.freedesktop.org/Software/dbus Comment : Message bus system for inter-application communication When i try to run gnome-terminal, I get error like this " Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: 无法在无机器 ID 时启动一条消息总线:无法加载 /var/db/dbus/machine-id 和 /etc/machine-id:打开文件“/var/db/dbus/machine-id”失败:文件或目录不存在 " I notice dbus_poststop() in /usr/local/etc/rc.d/dbus run like this " rm -f $pidfile # The following two lines may be removed after 2018-01-01 rm -f /var/db/dbus/machine-id [ ! -d /var/db/dbus ] || rmdir /var/db/dbus " so I think it's better to add " mkdir -p /var/db/dbus/ /usr/local/bin/dbus-uuidgen > /var/db/dbus/machine-id " in dbus_prestart()
*** Bug 219056 has been marked as a duplicate of this bug. ***
Can you try updating glib to glib-2.50.2_2,1?