首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >流浪者/puphpet默认值:找不到'puphpet/debian75-x64‘框

流浪者/puphpet默认值:找不到'puphpet/debian75-x64‘框
EN

Stack Overflow用户
提问于 2015-04-25 01:32:14
回答 1查看 866关注 0票数 3

我是Vagrant的新手,我使用PuPHPet构建了vagrantfile,但是当我执行vagrant up命令时,我得到了这个错误:

代码语言:javascript
复制
λ 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.
EN

回答 1

Stack Overflow用户

发布于 2015-04-25 05:28:00

如果您使用的是较旧版本的Vagrant,则包中的证书包可能已损坏。这似乎是1.7.2中的fixed

代码语言:javascript
复制
cat /etc/ssl/certs/ca-certificates.crt >> /opt/vagrant/embedded/cacert.pem

或者,您可以通过在Vagrantfile中添加以下代码行来告诉Vagrant不要担心证书链被破坏

代码语言:javascript
复制
config.vm.box_download_insecure = true

或者为vagrant box add指定--insecure选项,如下所示:

代码语言:javascript
复制
vagrant box add --insecure puphpet/debian75-x64
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29853928

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档