小编Pau*_*896的帖子

Git + libsecret 抛出“没有 X11 $DISPLAY 无法自动启动 D-Bus”

我已经在 CentOS 7 服务器上安装了 Git 和 libsecret。我使用 git-credentials-store 在服务器上以明文形式存储我的凭据。现在我想使用 libsecret 但不幸的是我收到 D-Bus 错误,如果我将 git-credential-libsecret 配置为凭证助手。

我已经安装了 dbus 和 dbus-x11 并通过以下命令启动了 dbus,但我仍然遇到错误。

dbus-launch --sh-syntax

错误:

$ git pull origin master

**(进程:66155):关键**:08:19:33.936:无法连接到特勤局:没有 X11 $DISPLAY 无法自动启动 D-Bus

** (process:66160): CRITICAL **: 08:19:34.209: 存储失败:没有 X11 $DISPLAY 无法自动启动 D-Bus

编辑:

安装 gnome-keyring 后出现以下错误

** 消息:14:10:49.566:来自秘密服务的远程错误:org.freedesktop.DBus.Error.UnknownMethod:在路径 /org/freedesktop/secrets/collection 的对象上没有这样的接口“org.freedesktop.Secret.Collection” /登录

unix git x11 dbus centos

3
推荐指数
1
解决办法
5231
查看次数

标签 统计

centos ×1

dbus ×1

git ×1

unix ×1

x11 ×1