我克隆了回购并按照指示here运行vagrant up
。然后失败了:
==> default: Step 11 : RUN /hyperledger/scripts/provision/common.sh
==> default: ---> Running in b8ef04b89dee
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages Hash Sum mismatch
==> default:
==> default:
==> default:
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources 404 Not Found [IP: 91.189.88.162 80]
==> default:
==> default:
==> default:
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources 404 Not Found [IP: 91.189.88.162 80]
==> default:
==> default:
==> default:
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/source/Sources 404 Not Found [IP: 91.189.88.162 80]
==> default:
==> default:
==> default:
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found [IP: 91.189.88.162 80]
==> default:
==> default:
==> default:
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.88.162 80]
==> default:
==> default:
==> default:
==> default: W
==> default: :
==> default: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.88.162 80]
==> default:
==> default:
==> default:
==> default: E
==> default: :
==> default: Some index files failed to download. They have been ignored, or old ones used instead.
==> default:
==> default:
==> default: W
==> default: :
==> default: Not using locking for read only lock file /var/lib/dpkg/lock
==> default:
==> default:
==> default: W
==> default: : Not using locking for read only lock file /var/lib/dpkg/lock
==> default: E: Unable to write to /var/cache/apt/
==> default: E: The package lists or status file could not be parsed or opened.
==> default:
==> default: The command '/bin/sh -c /hyperledger/scripts/provision/common.sh' returned a non-zero code: 4294967295
==> default: make: *** [build/image/base/.dummy] Error 255
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
我不知道如何解决这个问题。我猜我的连接可能在构建时失败了?由于再次运行vagrant up
只是说VM已在运行,因此不确定如何重新启动进程。 vagrant ssh
失败,echo $?
说255.
答案 0 :(得分:0)
如果您想重新启动进程(重建并重新启动环境),可以暂停VM并将其销毁。
为此,您可以使用检查机器状态,名称和ID
vagrant gloabl-status
然后从您的/devenv
文件夹执行:
vagrant halt
指定姓名或身份证 - 关闭您的电话
机器vagrant destroy
- 销毁您的VM 然后从vagrant up