Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant box could not be found error

I am trying to set up virtual machine using virtual box. I have got virtual box and vagrant installed in my windows 7 64-bit machine. I have also built an environment using puphpet. But whenever I try to install the box ubuntu1404-x64 it throws the error

Bringing machine 'machine1' up with 'virtualbox' provider...
==>Machine1: Box 'puphpet/ubuntu1404-x64' could not be found. Attempting to find and install...
machine1: Box Provider: virtualbox
machine1: Box Version: >= 0
machine1: Box file was not detected as metadata. Adding it directly...
machine1: Adding box 'puphpet/ubuntu1404-x64' (v0) for provider: virtualbox
machine1: Downloading: puphpet/boxes/ubuntu1404-x64
machine1:
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.

I checked the URL https://atlas.hashicorp.com/puphpet/boxes/ubuntu1404-x64/ and the box puphpet/ubuntu1404-x64 does exist.

Also when it says The error message, if any, is reproduced below it does not show any description at the terminal.

I googled the issue, tried some of the answers here at stackoverflow but no result. Please help.

like image 580
Sid Avatar asked Sep 05 '16 06:09

Sid


2 Answers

I've had a similar situation in the past, and it helped me to download the box using vagrant command line, instead of having it be downloaded automatically ( from the URL in Vagrantfile ):

$ vagrant box add USER/BOX

see more here. Could you try the same approach? It might work for you as well.

EDIT: on a windows box, Microsoft Visual C++ 2010 redist looks to be needed to perform the provisioning of the box. It can be downloaded here. More info on the puhpet issuet: here

like image 92
Geo Avatar answered Nov 16 '22 01:11

Geo


I ran into a similar problem and fixed it by installing the latest version of vagrant.

like image 3
Assain Avatar answered Nov 15 '22 23:11

Assain