Getting The box 'hashicorp/precise32' coul

2019-06-16 09:35发布

问题:

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

回答1:

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"



回答2:

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