在 ubuntu 中从终端启动“vagrant up"时找不到框“hashicorp/precise32" [英] Getting The box 'hashicorp/precise32' could not be found on firing 'vagrant up' from terminal in ubuntu
本文介绍了在 ubuntu 中从终端启动“vagrant up"时找不到框“hashicorp/precise32"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了 Vagrant,一旦我从终端进入我的项目文件夹,我就会发出以下命令:
I have installed Vagrant and once I am inside my project folder from the terminal I fire the following commands:
vagrant box 添加 hashicorp/precise32 http://files.vagrantup.com/precise32.box
输出:
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: files.vagrantup.com/precise32.box
[vagrant] Downloading box: hashicorp-files.vagrantup.com/precise32.box
[vagrant] Extracting box...
[vagrant] Verifying box...
[vagrant] Cleaning up downloaded box...
vagrant init hashicorp/precise32
输出:一个 Vagrantfile 已放置在此目录中
流浪
我收到一条错误消息:
The box 'hashicorp/precise32' could not be found
推荐答案
你需要做的就是编辑你的 vagrant 文件并像这样定义 vm.box_url 和 vm.box 选项.
All you need to do is edit you vagrant file and define the vm.box_url and vm.box options like this.
config.vm.box_url = "http://files.vagrantup.com/precise32.box一个>"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.box = "precise32"
config.vm.box = "precise32"
然后运行vagrant up"
这篇关于在 ubuntu 中从终端启动“vagrant up"时找不到框“hashicorp/precise32"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文