【问题标题】:Unable to download latest hyperledger fabric binaries无法下载最新的超级账本结构二进制文件
【发布时间】:2021-03-20 03:05:20
【问题描述】:

运行超级账本页面上提供的命令: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 v1.4.4
Cloning into 'fabric-samples'...
remote: Enumerating objects: 4427, done.
remote: Total 4427 (delta 0), reused 0 (delta 0), pack-reused 4427
Receiving objects: 100% (4427/4427), 1.61 MiB | 2.81 MiB/s, done.
Resolving deltas: 100% (2179/2179), done.
Note: checking out 'v1.4.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at bc72f3e Remove Stalebot

Pull Hyperledger Fabric binaries

===> Downloading version 1.4.4 platform specific fabric binaries
===> Downloading:  https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-darwin-amd64-1.4.4.tar.gz
https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-darwin-amd64-1.4.4.tar.gz: Unsupported scheme.
tar: Error opening archive: Failed to open 'hyperledger-fabric-darwin-amd64-1.4.4.tar.gz'
rm: hyperledger-fabric-darwin-amd64-1.4.4.tar.gz: No such file or directory
==> There was an error downloading the binary file.

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

不确定这是由于最新的 MacOs Catalina 10.15.2 更新还是与 Hyperledger Fabric 项目本身有关?

有人遇到过同样的问题吗?

【问题讨论】:

    标签: hyperledger-fabric hyperledger


    【解决方案1】:

    伙计,我就是赢不了这个。我们曾经使用curl 来下载脚本中的工件,但我最近将其更改为使用wget,因为许多用户都经历了断开的连接,这旨在帮助减轻这种痛苦。但似乎wget 存在使用变量呈现 URL 的问题(在某些版本中)。你可以试试这个,这是我切换到wget之前的提交:

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

    【讨论】:

    • 这个命令终于让我安装v2.0.0 curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/977ed80d3f3b4fe42dfb8f04cc93a92ab75b709e/scripts/bootstrap.sh | bash -s 2.0.0
    【解决方案2】:

    不,这似乎不是您的 MacO 的问题。我认为您应该尝试使用 Hyperledger fabric documentation 中提到的 curl 命令来获取二进制文件、织物最新图像和织物样本。

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

    在这里,您可以获得最新的生产版本二进制文件,或者如果您想要特定版本。
    您还可以在同一文档中找到对结构二进制文件的深入解释。

    【讨论】:

    • 这就是我要抱怨的!我可以使用文档中的命令获取结构示例,但无法安装二进制文件!
    【解决方案3】:

    我遇到了同样的问题,对我来说,我必须先用 brew install wget 安装 wget,然后使用 curl 来获取二进制文件。

    【讨论】:

      【解决方案4】:

      用root试试

       sudo -i
      

      然后curl -sSL Hyperledger binary -s -- 1.4.1 1.4.1 0.4.15 它对我有用

      【讨论】:

        【解决方案5】:

        我所做的是从 shell 脚本 (https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh) 中提到的 github 存储库中单独下载 tar 文件并将其解压缩,然后从同一个 shell 脚本中删除 pull binaries 部分,然后能够运行很好。

        【讨论】:

          【解决方案6】:

          你最好使用这个命令

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

          它直接安装fabricbinaries和图像

          【讨论】:

          • 所以你刚刚给了我我抱怨的同样的命令。
          • 我是说你在 ios 中安装是对的。你在 curl 上遇到错误更好你尝试另一个代替 curl
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-09-27
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-05-15
          相关资源
          最近更新 更多