Reputation: 5511
With an sudo apt-get update
and sudo apt-get upgrade vagrant
, Ubuntu tells me I'm at the newest version, 1.4.3
. This older version is not working properly when trying to setup Laravel Homestead, whose documentation for Laravel 5.0 states:
If this fails, you may have an older version of vagrant that requires the url of the box. The following should work:
vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
Which results in:
❯ vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
Downloading box from URL: https://atlas.hashicorp.com/laravel/boxes/homestead
Extracting box...e: 0/s, Estimated time remaining: --:--:--)
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):
bsdtar: Error opening archive: Unrecognized archive format
The documentation for 5.1+ states:
If this command fails, make sure your Vagrant installation is up to date.
and omits the alternative with the full URL to the box entirely.
How can I update my Vagrant install to the latest version?
Upvotes: 1
Views: 2193
Reputation: 53793
Directly download vagrant from https://www.vagrantup.com/downloads.html for the OS you need (should be https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb), and then sudo dpkg -i vagrant_1.8.1_x86_64.deb
Upvotes: 2