hyperledger-fabric 1.1 无法安装 jq

hyperledger-fabric 1.1 unable to install jq

我一直在尝试在第一个网络中使用 ./eyfn.sh up 脚本将第三个组织添加到现有频道中。但是 Jq 安装失败如下:

Installing jq
Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'

你如何解决这个错误?任何帮助将不胜感激。

终于找到解决办法了。

Step 1:

Before you pull up docker-compose.yml add extra hosts in your cli container
(This will configure hosts in the container in addition to default)

 extra_hosts:
      - "proxy.xxx.com:ipAddress Of proxy"

Step 2 :

create an apt.conf file in your local directory mentioning your proxy in format :



 Acquire::http::proxy "http://proxy.company.com:80/";
    Acquire::https::proxy "http://proxy.company.com:80/";
    Acquire::ftp::proxy "ftp://proxy.company.com:80/";
    Acquire::socks::proxy "socks://proxy.company.com:80/";

copy this file  from local directory to your cli using command :

docker cp apt.conf <containerId>:/etc/apt