Getting The box 'hashicorp/precise32' coul

2019-06-16 09:13发布

I have installed Vagrant and once I am inside my project folder from the terminal I fire the following commands:

  1. vagrant box add hashicorp/precise32 http://files.vagrantup.com/precise32.box

Output:

[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...
  1. vagrant init hashicorp/precise32

Output: A Vagrantfile has been placed in this directory

  1. vagrant up

I get an error that says:

The box 'hashicorp/precise32' could not be found

2条回答
甜甜的少女心
2楼-- · 2019-06-16 09:59

Please, install Vagrant from .deb package which is downloaded from original site http://www.vagrantup.com/downloads

查看更多
戒情不戒烟
3楼-- · 2019-06-16 10:00

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 = "precise32"

and then run "vagrant up"

查看更多
登录 后发表回答