今天继续装环境……前言提要,由于怎么都make不了,把lucid32换成precise32了。
add是没问题的:
$ vagrant box add precise32 E:/HashiCorp/precise32.box
==> box: Box file was not detected as metadata. Adding it directly…
==> box: Adding box ‘precise32’ (v0) for provider:
box: Unpacking necessary files from: file:///E:/HashiCorp/precise32.box
box:
==> box: Successfully added box ‘precise32’ (v0) for ‘virtualbox’!
执行
vagrant init
vagrant up
出现
$ vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Box ‘base’ could not be found. Attempting to find and install…
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly…
==> default: Adding box ‘base’ (v0) for provider: virtualbox
default: Downloading: base
default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn’t open file /E:/precise32/base
换成命令
vagrant init hashicorp/precise32
再次
$ vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Box ‘hashicorp/precise32’ could not be found. Attempting to find and install…
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box ‘hashicorp/precise32’
default: URL:https://atlas.hashicorp.com/hashicorp/precise32
==> default: Adding box ‘hashicorp/precise32’ (v1.0.0) for provider: virtualbox
default: Downloading:https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Unknown SSL protocol error in connection to hashicorp-files.hashicorp.com:443
找了下很多人都有这个问题。
https://github.com/mitchellh/vagrant/issues/3586
解决方案让用代理。
网友评论