我是流浪汉的新手,但几个月前我曾尝试过一次。
现在它还没有开始工作,我已经生成了puphpet配置并下载了 - 当然ruby并且已经安装了puppet gem和virtualbox - 但是当我遇到vagrant up时它会推送有关证书的错误等等于:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/trusty64' could not be found. Attempting to fin
install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'hashicorp/trusty64' 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/trusty64"]
Error: SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
我已经安装了mozilla CA捆绑证书并添加了系统变量' SSL_CERTIFICATE_PATH'并且路径正常 - 这是gem包管理器问题的解决方案。
任何人都有想法如何解决这个问题?
先谢谢, 丹尼
系统我试图继续工作: (Win7 x64,Ruby 2.1.5p,Vagrant 1.7.2,已安装git)
认证问题是系统上AVG Antivirus的故障,因为AVG防火墙,cURL无法查找。 我已经关闭avg一段时间并下载了盒子......之后 - 再次运行avg - 我可以用以前下载的盒子启动盒子。
答案 0 :(得分:8)
希望这个答案在同样的情况下帮助像我这样的人。下载ubuntu框时遇到相同的SSL错误。 我用记事本打开了文件“Vagrantfile”并在结束前添加了以下行:
config.vm.box_download_insecure = true
中找到此标记答案 1 :(得分:1)
你提到通过puphpet创建这个,但是看到hashicorp/trusty64
意味着你正在改变Vagrantfile
中的内容。
请注意,虽然puphpet的配置应在其他非puphpet/*
的盒子上工作,但我无法提供&#34 ;官方"支持他们。 Puphpet也是新的和小的,以至于没有那么多人能够提供深入的问题答案。
答案 2 :(得分:1)
确保在安装vagrant包期间禁用防病毒软件。 看起来像防病毒程序喜欢在安装过程中静默删除CA证书包。