Hyperledger Sawtooth在Ubuntu 18.04 LTS上安装问题

时间:2018-05-17 16:50:13

标签: python-3.x ubuntu hyperledger ubuntu-18.04 hyperledger-sawtooth

我试图按照以下链接安装Hyperledger Sawtooth,但与支持的16.04版本的Ubuntu不同,我使用的是本月早些时候发布的Ubuntu 18.04 LTS。您能否分享一下我如何解决这个问题的想法?

温馨的问候, 仙人

Rishi@Explorer-Ubuntu:~$ sudo apt-get install -y sawtooth
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sawtooth : Depends: python3-sawtooth-cli but it is not going to be installed
            Depends: python3-sawtooth-intkey but it is not going to be installed
            Depends: python3-sawtooth-poet-cli but it is not going to be installed
            Depends: python3-sawtooth-poet-core but it is not going to be installed
            Depends: python3-sawtooth-poet-families but it is not going to be installed
            Depends: python3-sawtooth-poet-simulator but it is not going to be installed
            Depends: python3-sawtooth-rest-api but it is not going to be installed
            Depends: python3-sawtooth-sdk but it is not going to be installed
            Depends: python3-sawtooth-settings but it is not going to be installed
            Depends: python3-sawtooth-signing but it is not going to be installed
            Depends: python3-sawtooth-validator but it is not going to be installed
            Depends: python3-sawtooth-xo but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Rishi@Explorer-Ubuntu:~$ python3 --version
Python 3.6.5

4 个答案:

答案 0 :(得分:1)

似乎还不支持Ubuntu 18.04。让我们等待Hyperledger支持它。

  

android @ baymax:〜$ ./prereqs-ubuntu.sh

     

错误:不支持Ubuntu仿生

答案 1 :(得分:1)

目前,锯齿1.0.x仅支持16.04 LTS。如果可能,切换到Ubuntu 16.04 LTS。此外,您可以继续使用sawtooth with dockers或在您的ubuntu仿生操作系统上使用"adapt"锯齿。

答案 2 :(得分:1)

我遇到了同样的问题,改用docker解决了这个问题。确保使用version 1.0.5的docker文件。

答案 3 :(得分:0)

Ubuntu服务器18.04现在受支持,但似乎桌面版本仍然存在问题,至少Windows Hyper-V“快速创建”库中提供的桌面版本仍然存在。

问题与使用错误的protobuf编译器版本有关。

经过一番混乱之后,我发现使用:p删除了protobuf模块。

apt remove -y python3-protobuf

在本教程中导致安装了锯齿波,以恢复解决该问题的模块,然后我可以从1.2.3 Sawtooth文档的此处遍历整个Ubuntu教程:

https://sawtooth.hyperledger.org/docs/core/releases/1.2.3/app_developers_guide/ubuntu.html

查看之前和之后安装的模块的列表并没有显示任何明显的东西,因此这一定是一些模块相互依赖性的问题。