bash - 在 vagrant up 期间“无法获得本地颁发者证书”,即使在 vagrant box 添加 --insecure 之后
问题描述
我安装的 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 个解决方案来解决此问题:
insecure
您可以使用标志下载该框vagrant box add --insecure bento/ubuntu-16.04 --insecure
您可以
box_download_insecure
直接在 Vagrantfile 中添加标志Vagrant.configure("2") do |config| config.vm.box = "bento/ubuntu-16.04" config.vm.box_download_insecure = true end
推荐阅读
- c - copy_from/to_user 何时返回非零值
- loopbackjs - 将环回默认模型用户更改为成员
- xml - QuickBase AddRecord API 调用
- selenium-webdriver - Selenoid:Chrome 浏览器启动几秒钟后关闭
- r - 将 NA 和/或因子水平随机更改为 R 中的其他因子水平
- clips - 两场比较器 CLIPS
- javascript - 要求与道具不起作用。“呼叫无效……”
- r - 与其他列中最多 2 个唯一其他值相关的子集列值
- python - 从 VSCode 执行 subprocess.Popen() 以打开另一个 VSCode 实例
- containers - 如何使用 CICS CONTAINER 读取 OCCURS 结构?