【问题标题】:Installing Hyperledger Sawtooth安装 Hyperledger Sawtooth
【发布时间】:2018-04-16 16:41:15
【问题描述】:

我正在尝试在 ubuntu 16.04 上安装 Hyperledger Sawtooth。执行此指令时:

$ sudo add-apt-repository 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe'

我发现了这个错误:

** (mintSources.py:19571): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-143bDHVFZH: Connexion refused

我已经测试了此类问题的所有可能解决方案,例如

https://bbs.archlinux.org/viewtopic.php?id=228894

https://bugs.launchpad.net/ubuntu/+source/at-spi2-core/+bug/1193236

,但我无法解决问题。

如果您能帮助我,我将不胜感激。

【问题讨论】:

  • 这看起来不像是 Hyperledger Sawtooth 问题。但是,您是否通过预先运行sudo apt install software-properties-common python-software-properties 来确保add-apt-repository 命令可用?
  • 这似乎是操作系统问题。您可以尝试使用 add-apt-repository 的替代方法,只是在 /etc/apt/sources.list 文件中添加 repo 规范。 echo 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe' >> /etc/apt/sources.list 然后运行 ​​apt-get update。您需要 root 用户权限才能运行这两个命令。
  • 检查此链接并遵循此简单说明(更新):sawtooth.hyperledger.org/docs/core/releases/0.7/sysadmin_guide/…

标签: hyperledger-sawtooth


【解决方案1】:

这只是一个警告,您可以忽略它。看起来它想在不可用时启动图形显示(可能通过 SSH)。删除警告的解决方法是将export NO_AT_BRIDGE=1 添加到~/.bashrc

详情见https://bugs.launchpad.net/ubuntu/+source/sound-juicer/+bug/1526042

上述答案中的安装说明适用于 0.7 预发布版本。以下是 Sawtooth 1.x 版本的说明: https://sawtooth.hyperledger.org/docs/core/releases/latest/app_developers_guide/installing_sawtooth.html

编辑:这里是软件包安装步骤和初始设置的简要总结:

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD $ sudo add-apt-repository 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe' $ sudo apt-get update $ sudo apt-get install -y sawtooth $ sawtooth keygen $ sawset genesis $ sudo -u sawtooth sawadm genesis config-genesis.batch $ sudo sawadm keygen

【讨论】:

  • 欢迎提供解决方案的链接,但请确保您的答案在没有它的情况下有用:add context around the link 这样您的其他用户就会知道它是什么以及为什么会出现,然后引用最相关的内容您链接到的页面的一部分,以防目标页面不可用。可能会删除仅是链接的答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-09-02
  • 1970-01-01
  • 2018-04-11
  • 1970-01-01
相关资源
最近更新 更多