follow Sam哥 OS 课程的漫长之路 Day2

今天继续装环境……前言提要,由于怎么都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://techythought.wordpress.com/2016/04/11/vagrant-error-failed-to-connect-to-atlas-hashicorp-com/

https://github.com/mitchellh/vagrant/issues/3586

解决方案让用代理。

你可能感兴趣的:(follow Sam哥 OS 课程的漫长之路 Day2)