gpt4 book ai didi

Vagrant ,无法下载盒子

转载 作者:行者123 更新时间:2023-12-02 10:08:12 24 4
gpt4 key购买 nike

不知道为什么会遇到这个问题,但我无法添加 Vagrant 盒。

使用 Windows 10,尝试使用 powershell 和简单的命令提示符。同样的问题。这是一个相对全新的 Windows 安装。也许我缺少一些必需的包?

首先我尝试了这个命令:

vagrant box add hashicorp/precise32

并得到错误:

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:

所以我手动下载了盒子并尝试了这个:

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

再次出现此错误:

==> 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.

最佳答案

当前版本(截至目前)OSX 上的库不支持与 Vagrant 1.8.7 捆绑的curl 版本。我安装了 1.8.6,一切都运行得很好。为了检验这个理论:

cd /opt/vagrant/embedded/bin
./curl --help

如果您得到“正常”回复,那么应该没问题,或者还有其他问题。

关于 Vagrant ,无法下载盒子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34463828/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com