Reputation: 1589
I tried updating my Homestead box on from Vagrant and received a 404 error message and I did some searching but not sure what the issue is on why I can update it.
➜ Homestead git:(master) ✗ vagrant box update
==> default: Checking for updates to 'laravel/homestead'
default: Latest installed version: 2.0.0
default: Version constraints: >= 0
default: Provider: virtualbox
There was an error while downloading the metadata for this box.
The error message is shown below:
The requested URL returned error: 404 Not Found
Upvotes: 6
Views: 3720
Reputation: 719
For me, changing the file data didn't solved the problem. I used an extra param in the command.
vagrant box add laravel/homestead https://vagrantcloud.com/laravel/homestead
So the URL was pass in the command
Upvotes: 6
Reputation: 72
This short script combines the first answer with removal of the newline character.
echo "https://vagrantcloud.com/laravel/homestead" > ~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/metadata_url && truncate --size=-1 ~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/metadata_url
Upvotes: 0
Reputation: 1088
Open the file ~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/metadata_url using a text editor and change it's content to https://vagrantcloud.com/laravel/homestead
Upvotes: 28