【问题标题】:Windows Installation vagrant up is failingWindows 安装 vagrant up 失败
【发布时间】:2017-10-06 05:48:20
【问题描述】:

你能帮我解决这个问题吗?

我正在尝试在我的 Windows 10(办公笔记本电脑)中安装 Aerospike。我已经下载了最新的 VM Box 最新的 vagrant。 然后通过 git bash,我试图按照 aerospike windows 安装的步骤进行操作,但是,我在“vagrant up”方面失败了。结果如下:

$ vagrant up Bringing machine 'default' up with 'VirtualBox' provider...
==> default: Box 'aerospike/centos-6.5' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'aerospike/centos-6.5'
    default: URL: http / aerospike/centos-6.5
==> default: Adding box 'aerospike/centos-6.5' (v3.14.1.2) for provider: virtualbox
    default: Downloading: https: //vagrantcloud.com/aerospike/boxes/centos-6.5/versions/3.14.1.2/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.

SSL证书问题:证书链中的自签名证书 更多细节在这里:https://curl.haxx.se/docs/sslcerts.html

curl 默认执行 SSL 证书验证,使用“bundle” 证书颁发机构 (CA) 公钥(CA 证书)。如果默认捆绑文件不够用,您可以使用 --cacert 选项指定备用文件。 如果此 HTTPS 服务器使用由 CA 签名的证书 捆绑包,证书验证可能由于以下原因而失败 证书有问题(它可能已过期,或者名称可能 与 URL 中的域名不匹配)。 如果您想关闭 curl 对证书的验证,请使用 -k(或 --insecure)选项。 HTTPS-proxy 有类似的选项 --proxy-cacert 和 --proxy-insecure。

注意:我能够成功加载“precise64”。

【问题讨论】:

  • 你运行的是哪个版本的 virtualbox?

标签: vagrant aerospike


【解决方案1】:

您可以在 Vagrantfile 中添加以下内容

config.vm.box_download_insecure = true

然后重新运行vagrant up,它应该会下载盒子

【讨论】:

  • 非常感谢,vagrant up 命令现在可以工作并且能够完成这项工作。再次感谢。
【解决方案2】:

问题似乎与 openssl 相关。

请看以下内容:

http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/

解决方法是让 vagrant 以不安全的方式下载它:

vagrant box add --insecure -c aerospike/centos-6.5 https://vagrantcloud.com/aerospike/boxes/centos-6.5/versions/3.14.1.2/providers/virtualbox.box

vagrant init aerospike/centos-6.5

vagrant up

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    • 1970-01-01
    • 2015-03-26
    • 1970-01-01
    • 2016-05-03
    相关资源
    最近更新 更多