在执行之前初始化 dbus 运行环境,执行: export $(dbus-launch)
完整报错:D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": No such file or directory; Failed to open "/etc/machine-id": No such file or directory)
缺少machine-id文件,需要给它定义一个id,使用dbus-uuidgen创建id文件
dbus-uuidgen > /etc/machine-id