首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“无法获得本地颁发者证书”在流浪者上线期间,即使是在“流浪”框添加-不安全之后。

“无法获得本地颁发者证书”在流浪者上线期间,即使是在“流浪”框添加-不安全之后。
EN

Stack Overflow用户
提问于 2019-01-25 09:16:23
回答 1查看 4.8K关注 0票数 4

我安装的Vagrant版本是2.2.3,我运行的是Windows 8的6.3版本。让我在下面把我写的内容复制到git bash中,结果是什么。

代码语言:javascript
复制
yishai and shira (master) vagrant $ vagrant box add --insecure bento/ubuntu-16.04 --insecure --force
==> box: Loading metadata for box 'bento/ubuntu-16.04'
    ...
==> box: Successfully added box 'bento/ubuntu-16.04' (v201812.27.0) for 'virtualbox'!
yishai and shira (master) vagrant $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: = 2.3.5
The box 'bento/ubuntu-16.04' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, 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://vagrantcloud.com/bento/ubuntu-16.04"]
Error: SSL certificate problem: unable to get local issuer certificate
EN

回答 1

Stack Overflow用户

发布于 2019-01-27 10:24:20

您有两个解决方案来解决这个问题:

  1. 您可以使用insecure标志下载该框。 流浪盒添加-不安全的bento/ubuntu-16.04 -不安全
  2. 可以在Vagrantfile文件中直接添加box_download_insecure标志 Vagrant.configure("2") do \config_ config.vm.box = "bento/ubuntu-16.04“config.vm.box_download_insecure = true end
票数 15
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54362144

复制
相关文章

相似问题

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