流浪者在启动过程中仍然“无法获取本地发行者证书”,即使在流浪者框添加--insecure之后

时间:2019-01-25 09:16:23

标签: bash vagrant

我安装的Vagrant版本是2.2.3,并且我正在运行Windows 8的6.3版本。 让我在下面写下我写到git bash中的内容以及结果是什么。

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

1 个答案:

答案 0 :(得分:1)

您有2种解决方案来解决此问题:

  1. 您可以使用insecure标志下载该盒子

    vagrant box add --insecure bento/ubuntu-16.04 --insecure
    
  2. 您可以直接在您的Vagrantfile中添加box_download_insecure标志

    Vagrant.configure("2") do |config|
      config.vm.box = "bento/ubuntu-16.04"
      config.vm.box_download_insecure = true
    end