简体   繁体   中英

Install newer vagrant on Ubuntu LTS 14.04 (1.5+ ideally) for Laravel Homestead

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?

https://www.vagrantup.com/downloads.html直接为您需要的操作系统下载vagrant(应为https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb ),然后然后sudo dpkg -i vagrant_1.8.1_x86_64.deb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM