Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Homestead/Vagrant box stuck on box: Calculating and comparing box checksum

Tags:

I'm in the process of setting up an existing Laravel project and can't get past adding the homestead box.

The instruction is: vagrant box add laravel/homestead

It goes through a 5-10 minute of process then fails at box: Calculating and comparing box checksum...

I'm on Linux Mint 18.3 and have tried these instructions with the latest virtualbox(6.0.14) and multiple versions of vagrant 2.2.2, 2.2.4, and 2.2.6(latest).

I get different errors for 2.2.6 vs other versions. For 2.2.6 I get /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/util/file_checksum.rb:65:in 'load_digest': uninitialized constant FileChecksum::Errors (NameError)

For other versions I get a red warning that states: The specified checksum type is not supported by Vagrant: . Vagrant supports the following checksum types: md5, sha1, sha256

I'm not too experienced with Vagrant and am not sure how to approach this issue. There also isn't too much information about this particular problem, so any help is appreciated.

like image 629
Ecko Avatar asked Nov 30 '19 19:11

Ecko


2 Answers

Go to the Homestead directory, enter:

git fetch --all --tags --prune`
//then enter: 
git checkout tags/v9.4.1 (check github for the latest stable version)

Vagrant box adds laravel/homestead should work. Or at least that just worked for me when I was having a similar issue.

like image 55
Michael Burgin Avatar answered Nov 15 '22 05:11

Michael Burgin


Try to download previous version of the box, ex.

vagrant box add --box-version 8.2.1 laravel/homestead
like image 43
friendlyAdviser Avatar answered Nov 15 '22 04:11

friendlyAdviser