Hyperledger Fabric-样本-2.2.0平台特定的Fabric二进制文件不可下载

问题描述

我遵循了使用示例的安装过程,但是由于链接https://github.com/hyperledger/fabric/releases/download/v2.2.0/hyperledger-fabric-msys_nt-10.0-17763-amd64-2.2.0.tar.gz不存在,因此出现错误

我运行了以下命令:

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s

Clone hyperledger/fabric-samples repo

===> cloning hyperledger/fabric-samples repo and checkout v2.2.0
cloning into 'fabric-samples'...
remote: Enumerating objects: 19,done.
remote: Counting objects: 100% (19/19),done.
remote: Compressing objects: 100% (18/18),done.
remote: Total 6431 (delta 8),reused 2 (delta 1),pack-reused 6412R
Receiving objects: 100% (6431/6431),3.69 MiB | 9.64 MiB/s,done.
Resolving deltas: 100% (3350/3350),done.
Updating files: 100% (501/501),done.
error: pathspec 'v2.2.0' did not match any file(s) kNown to git

Pull Hyperledger Fabric binaries

===> Downloading version 2.2.0 platform specific fabric binaries
===> Downloading:  https://github.com/hyperledger/fabric/releases/download/v2.2.0/hyperledger-fabric-msys_nt-10.0-17763-amd64-2.2.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     24      0 --:--:-- --:--:-- --:--:--    24

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting Now
==> There was an error downloading the binary file.

------> 2.2.0 platform specific fabric binary is not available to download <----

解决方法

您可以尝试以下命令:

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release-2.2/scripts/bootstrap.sh | bash -s
,

我也遇到了同样的问题,而解决该问题的唯一方法是下载旧版本。尝试此页面上的版本:

https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html

如果无法拉出图像,请尝试使用sudo。