我尝试按照指南here在Windows 10中设置hyperledger fabric-0.6。 (在流浪汉中部署环境) 完成所有先决条件后,我在执行命令
后进入流浪者make peer
它回复为:
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages.gz is not what the server reported 729504 729509
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 3769 kB in 18s (207 kB/s)
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64
The command '/bin/sh -c core/chaincode/shim/java/javabuild.sh' returned a non-zero code: 1
Makefile:217: recipe for target 'build/image/javaenv/.dummy' failed
make: *** [build/image/javaenv/.dummy] Error 1
我想知道这里出了什么问题(是关于Makefile的?)以及如何修复它。
答案 0 :(得分:0)
您的图片中没有安装java。
apt-get install default-jdk-headless