0

我克隆了 repo 并按照此处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再次运行只是说虚拟机已经在运行。vagrant ssh失败,echo $?255 说。

4

1 回答 1

0

如果您想重新启动该过程(重新构建并重新启动您的环境),您可以停止您的虚拟机并销毁它。

为此,您可以使用以下命令检查您的机器状态、名称和 ID vagrant gloabl-status

然后从您的/devenv文件夹中执行:

  • vagrant halt指定名称或 ID - 关闭您的机器
  • vagrant destroy- 销毁你的虚拟机

然后你从头开始vagrant up

于 2016-09-22T01:06:52.477 回答