gpt4 book ai didi

bash - "unable to get local issuer certificate"在 vagrant up 期间,即使在 vagrant box add --insecure 之后

转载 作者:行者123 更新时间:2023-11-29 09:49:59 26 4
gpt4 key购买 nike

我安装的 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

最佳答案

您有 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

关于bash - "unable to get local issuer certificate"在 vagrant up 期间,即使在 vagrant box add --insecure 之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54362144/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com