简体   繁体   English

Hyperledger Sawtooth在Ubuntu 18.04 LTS上的安装问题

[英]Hyperledger Sawtooth Install problems on Ubuntu 18.04 LTS

I was trying to install Hyperledger Sawtooth as per below link but unlike the supported 16.04 version of Ubuntu, I'm using Ubuntu 18.04 LTS that was released earlier this month. 我试图按照下面的链接安装Hyperledger Sawtooth,但是与受支持的Ubuntu 16.04版本不同,我使用的是本月初发布的Ubuntu 18.04 LTS。 Could you please share thoughts on how I can resolve this issue? 您能否分享我如何解决此问题的想法?

Warm Regards, Rishi 热烈的问候,Rishi

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

It seems like Ubuntu 18.04 is not yet supported. 似乎还不支持Ubuntu 18.04。 Let us wait for Hyperledger to support it. 让我们等待Hyperledger支持它。

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

Error: Ubuntu bionic is not supported 错误:不支持Ubuntu仿生

Currently, sawtooth 1.0.x supports only 16.04 LTS. 当前,锯齿1.0.x仅支持16.04 LTS。 If possible, switch to Ubuntu 16.04 LTS. 如果可能,请切换到Ubuntu 16.04 LTS。 Also, you could continue using sawtooth with dockers or use sawtooth with "adapt" on your ubuntu bionic OS. 另外,您可以在ubuntu仿生OS上继续将锯齿与docker一起使用或将锯齿与“ adapt”一起使用。

I had the same problem, switching to docker solved that. 我有同样的问题,切换到docker解决了这个问题。 Ensure to use the docker file of version 1.0.5 . 确保使用版本1.0.5的docker文件。

Ubuntu server 18.04 is now supported but it seems that an issue still exists with the desktop version, at least the desktop version provided in the Windows Hyper-V 'quick create' gallery. 现在支持Ubuntu服务器18.04,但似乎桌面版本仍然存在问题,至少Windows Hyper-V快速创建库中提供的桌面版本仍然存在问题。

The problem is related to it using the wrong protobuf compiler version. 问题与使用错误的protobuf编译器版本有关。

After much messing around I found that removing the protobuf module with : 经过一番混乱之后,我发现使用以下命令删除了protobuf模块:

apt remove -y python3-protobuf apt删除-y python3-protobuf

caused the installation of sawtooth during the tutorial to restore the module which resolved the issue and I could then run through the whole Ubuntu tutorial from the 1.2.3 Sawtooth docs here : 导致在教程期间安装了锯齿恢复模块,从而解决了该问题,然后我可以从1.2.3 Sawtooth文档中浏览整个Ubuntu教程:

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

Looking at the list of installed modules before and after didn't show anything obvious so it must be some module interdependency issue. 查看之前和之后安装的模块列表并没有发现任何明显的问题,因此这一定是一些模块相互依赖性的问题。

据说现在已支持Ubuntu 18.04,但此问题仍然存在:-(

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM