ruby – 如何在带有流浪汉1.7.2的Windows 7 x64上流浪(用puphpet
发布时间:2020-12-17 03:56:28 所属栏目:百科 来源:网络整理
导读:我是流浪汉的新手,但几个月前我曾尝试过一次. 现在它只是没有开始工作,我已经生成了puphpet配置并下载了 – 当然ruby并且已经安装了puppet gem和virtualbox – 但是当我点击vagrant时它会推送有关证书的错误,等等: Bringing machine 'default' up with 'vir
我是流浪汉的新手,但几个月前我曾尝试过一次.
现在它只是没有开始工作,我已经生成了puphpet配置并下载了 – 当然ruby并且已经安装了puppet gem和virtualbox – 但是当我点击vagrant时它会推送有关证书的错误,等等: Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'hashicorp/trusty64' could not be found. Attempting to fin install... default: Box Provider: virtualbox default: Box Version: >= 0 The box 'hashicorp/trusty64' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas,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://atlas.hashicorp.com/hashicorp/trusty64"] Error: SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default,using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate,you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle,the certificate verification probably failed due to a problem with the certificate (it might be expired,or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate,use the -k (or --insecure) option. 我已经安装了mozilla CA捆绑证书并添加了系统变量’SSL_CERTIFICATE_PATH’并且路径正常 – 这是gem包管理器问题的解决方案. 任何人都有一个想法如何解决这个问题? 提前致谢, 系统我正在尝试:(Win7 x64,Ruby 2.1.5p,Vagrant 1.7.2,安装了git) 解决了 认证问题是系统上AVG Antivirus的故障,因为AVG防火墙,cURL无法查找. 解决方法
希望这个答案在同样的情况下帮助像我这样的人.下载ubuntu框时遇到相同的SSL错误.
我用记事本打开了文件“Vagrantfile”并在结束前添加了以下行: config.vm.box_download_insecure = true 在Vagrant’s documentation发现了这面旗帜 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |