6

not sure why I'm having this issue but I can't add vagrant boxes.

Using windows 10, tried on powershell and simple command prompt. same issue. It's a relatively fresh install of windows. Maybe I'm missing some required package?

first i tried this command:

vagrant box add hashicorp/precise32

and got the error:

The box 'hashicorp/precise32' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/hashicorp/precise32"]
Error:

So I downloaded the box manually and tried this:

vagrant box add base64 file:///D:/downloads/vagrant_boxes/precise64.box

And got this error again:

==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'base64' (v0) for provider:
    box: Unpacking necessary files from: file:///D:/downloads/vagrant_boxes/precise64.box
    box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
4

7 に答える 7

4

vagrant 1.8.1 をインストールして以来、この問題を解決してきました。下位バージョンをインストールしようとしましたが、同じ問題が発生しました。うまくいけば、ここで解決します:

まず、Microsoft Visual C++ 2010 SP1 Redistributable がインストールされていることを確認してください。これは64ビット用ですhttps://www.microsoft.com/en-us/download/details.aspx?id=13523 次に、私の場合は64ビットでもsslバージョンのcurlをダウンロードします。ここ: https://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi

curl.exe を C:\Vagrant\embedded\bin に抽出します。インストールディレクトリを参照してください。

そして完了。SSL を使用していない場合は、非 SSL バージョンの curl を試してください。希望が役立ちます

于 2016-02-26T09:51:57.187 に答える
4

これが起こったとき、私は vagrant v1.8.0 を使用していました。その日の後半に vagrant v1.8.1 がリリースされました。私はそれを試みず、代わりに v1.7.4 に戻し、問題は解決しました。

于 2016-01-01T10:01:53.260 に答える
1

Check the C: \ HashiCorp \ Vagrant \ embedded \ bin \ curl.exe case give an error, there is your problem.

To solve, just download gitbash, console2, cmder, etc ... you have curl installed, or try http://www.confusedbycode.com/curl/.

however strongly recommend gitbash or cmder

于 2016-01-05T00:44:44.163 に答える
-1

ボックスを追加する必要はありません。これの代わりに初期化:

vagrant init hashicorp/precise32
vagrant up
vagrant ssh

ボックスリストに自動的に追加されることを願っています。ローカル ボックスをセットアップする場合は、いくつかの手順で追加します。

D:
cd downloads/vagrant_boxes
vagrant box add base64 precise64.box
vagrant up
vagrant ssh
于 2016-01-01T10:16:39.817 に答える