我是Vagrant的新手,我使用PuPHPet构建了vagrantfile,但是当我执行vagrant up命令时,我得到了这个错误:
λ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'puphpet/debian75-x64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box '["puphpet/debian75-x64"]' 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/puphpet/debian75-x64"]
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.发布于 2015-04-25 05:28:00
如果您使用的是较旧版本的Vagrant,则包中的证书包可能已损坏。这似乎是1.7.2中的fixed。
cat /etc/ssl/certs/ca-certificates.crt >> /opt/vagrant/embedded/cacert.pem或者,您可以通过在Vagrantfile中添加以下代码行来告诉Vagrant不要担心证书链被破坏
config.vm.box_download_insecure = true或者为vagrant box add指定--insecure选项,如下所示:
vagrant box add --insecure puphpet/debian75-x64https://stackoverflow.com/questions/29853928
复制相似问题