24
votes

I am trying to install laravel homestead and can't get past adding the homestead box.

The instruction is: vagrant box add laravel/homestead

After completing the download process following error appears.

C:\Users\HARSHA - PC PRO>vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v9.0.1) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/9.0.1/providers/virtualbox.box
==> box: Box download is resuming from prior download progress
    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
    box: Progress: 100% (Rate: 188k/s, Estimated time remaining: --:--:--)
    box: Calculating and comparing box checksum...
The specified checksum type is not supported by Vagrant: sha512.
Vagrant supports the following checksum types:

md5, sha1, sha256

I'm on Windows 10 64 bit PC and have tried these instructions with the virtualbox(Version 6.0.0 r127566 (Qt5.6.2)) and vagrant_2.2.2_x86_64 version.

I'm trying to install Laravel homestead and am not aware of resolving this since I am new to the Laravel vagrant. I searched the web for the particular problem and I could not find any solution pertaining to the above, so any help is appreciated.

5

5 Answers

19
votes

As mentioned in Vagrant's CHANGELOG.md file, new checksum types are now supported. Simply updating Vagrant to its latest version (2.2.6) should do the trick.

You can then do vagrant box update to upgrade the Homestead box.

9
votes

In my case I saw in the logs that the version trying to get installed was v9.2.2-alpha1

box: Adding box 'laravel/homestead' (v9.2.2-alpha1) for provider: virtualbox

What worked for me is defining the version by using the following parameter

--box-version=9.1.1

i.e.

vagrant box add laravel/homestead --checksum-type=sha256 --box-version=9.1.1

Also, try to download and install the latest version of vagrant.

8
votes

You are using the unsupported checksum type.try installing with --checksum-type parameter. Given below,

vagrant box add laravel/homestead --checksum-type sha256

Here is the Docs to refer to while using command-line.

2
votes

Try 2.2.7 version.

vagrant -v

Vagrant 2.2.7

==> box: Successfully added box 'laravel/homestead' (v9.3.0) for 'virtualbox'!

0
votes

I had the same problem and it took multiple attempts.

Problems

  • Couldn't update the vagrant box.
  • Once I downloaded it wouldn't switch to the new box.
  • Once I switched Laravel threw a Facade error.

Solution (with many thank you's to the answers in this thread):

  1. Navigate to the Homestead/Vagrant folder.
  2. Then run "vagrant -v" to check your Vagrant version (ex. "Vagrant 2.1.5").
  3. In a web browser go to https://www.vagrantup.com/downloads.html .
  4. Download the latest Vagrant version.
  5. On your computer, run and install the new version.
  6. Go to: https://www.virtualbox.org/
  7. Download the lastest Virtual Machine.
  8. On your computer, run and install the new version.
  9. Back in the terminal, check the vagrant version again "vagrant -v" (ex. "Vagrant 2.2.10").
  10. Make sure your Vagrant is stopped by running "vagrant halt".
  11. Purge and reinstall your vagrant plugins to be safe with "vagrant plugin expunge --reinstall" (and confirm "Y").
  12. Now run "vagrant box update" to update your box.
  13. Now load your box with "vagrant up".
  14. With your box loaded run "vagrant destroy".
  15. Now run "vagrant up" again to rebuild your box from scratch.

This worked for me. Let me know if this works for you.