我安装的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发布于 2019-01-27 10:24:20
您有两个解决方案来解决这个问题:
insecure标志下载该框。
流浪盒添加-不安全的bento/ubuntu-16.04 -不安全box_download_insecure标志
Vagrant.configure("2") do \config_ config.vm.box = "bento/ubuntu-16.04“config.vm.box_download_insecure = true endhttps://stackoverflow.com/questions/54362144
复制相似问题