Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while adding vagrant box in ubuntu

I installed vagrant and virtual box in Ubuntu 12.04.2 LTS. (Vagrant version 1.2.1). I have the vagrant box downloaded and executed the vagrant box add command. I am getting the following error:

*vagrant box add base64 package.box

Downloading or copying the box...
Extracting box...te: 147M/s, Estimated time remaining: 0:00:01)
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):
x ./box-disk1.vmdk: Write failed
x ./box.ovf: Write failed
x ./Vagrantfile: Write failed
bsdtar: Error exit delayed from previous errors.*

I repeated the same with other versions of vagrant(like version 1.2.2, 1.0.1, 1.3.0), but the same error. I am sure that the vagrant box I am adding is not corrupt, as I have used the same in mac machine and it worked fine...

like image 331
user2846870 Avatar asked Oct 02 '22 18:10

user2846870


2 Answers

It seems like the .box file isn't corrupted but your vagrant needs write permissions. I think you should check the installation of vagrant.

like image 102
Vinh Tran Avatar answered Oct 05 '22 09:10

Vinh Tran


I have the same problem to fix this you need to add the url source from http://www.vagrantbox.es/ search for your OS (Devopera Ubuntu 12.04 LAMP stack) if you use LAMP.

sudo vagrant box add laravel/homestead http://devopera.com/node/63/download/ubuntu1204/dobu12-lamp-vagrant.box
like image 43
Lyubomir Markov Avatar answered Oct 05 '22 08:10

Lyubomir Markov