11

Windows 10 で次のエラーが発生します。

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:

展開されたエラー メッセージがないことに注意してください。これにより、投稿された他の同様の質問とは異なります。また、別の解決策もあります。

4

2 に答える 2

17

これは、Windows 10 で vagrant 1.8.1 を実行しているときに依存関係が見つからないことが原因のようです。Windows コマンド ライン "cmd.exe" および git-bash で発生しました。これは、mitchellh/vagrant GitHub リポジトリでも報告され、「Windows 10 では、"vagrant up" と "vagrant box add" で空白のエラー #6852 がスローされる」としてクローズされました。

私と他の人は、問題#6754で jeremywhittington が提案したように、「 Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) 」をインストールすることで、この問題を回避しました。

「vagrant --debug add hashicorp/precise32」出力の関連する抜粋は、標準の vagrant 出力に伝播されない奇妙なコードで終了する「curl」を示しています。

...
INFO subprocess: Starting process: ["C:\\HashiCorp\\Vagrant\\embedded\\bin/curl.EXE", "-I", "-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.8.1 (+https://www.vagrantup.com; ruby2.2.3)", "--continue-at", "-", "-H", "Accept:application/json", "https://atlas.hashicorp.com/hashicorp/precise32"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 3221225781
 WARN downloader: Downloader exit code: 3221225781
ERROR warden: Error occurred: 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:
...
于 2016-01-18T05:59:23.837 に答える
0

私が理解したのは、vagrant がデフォルトで Windows 10 との競合を引き起こすバージョンの CURL をインストールするということでした。

私は次のように問題を解決することができました:

1) 新しい CURL をダウンロードします。

[ https://sourceforge.net/projects/curlforwindows/?source=typ_redirect]

2) フォルダーを c:/ に抽出します。

例: C:/curl-7.4.0/

3) vagrant フォルダー C:\HashiCorp\Vagrant\embedded\bin を見つけます。

4) ファイル curl.exe の名前を curl.exe_ に変更するか、削除します。

5) c:/curl-7.4.0/ を {PATH} 変数に追加します。

6) プロンプトを開き、コマンド「curl --help」をテストします

7) 「vagrant up」コマンドを再度実行して、満足してください :)

于 2016-07-31T03:54:28.093 に答える