在 Ubuntu LTS 14.04(最好是 1.5+)上为 Laravel Homestead 安装更新的 vagrant
Install newer vagrant on Ubuntu LTS 14.04 (1.5+ ideally) for Laravel Homestead
对于 sudo apt-get update
和 sudo apt-get upgrade vagrant
,Ubuntu 告诉我我使用的是最新版本 1.4.3
。这个旧版本在尝试设置 Laravel Homestead 时无法正常工作,其 documentation for Laravel 5.0 声明:
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
这导致:
❯ 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+ 状态:
If this command fails, make sure your Vagrant installation is up to date.
并完全忽略带有完整 URL 的备选方案。
如何将我的 Vagrant 安装更新到最新版本?
直接从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下载vagrant),然后sudo dpkg -i vagrant_1.8.1_x86_64.deb
对于 sudo apt-get update
和 sudo apt-get upgrade vagrant
,Ubuntu 告诉我我使用的是最新版本 1.4.3
。这个旧版本在尝试设置 Laravel Homestead 时无法正常工作,其 documentation for Laravel 5.0 声明:
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
这导致:
❯ 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+ 状态:
If this command fails, make sure your Vagrant installation is up to date.
并完全忽略带有完整 URL 的备选方案。
如何将我的 Vagrant 安装更新到最新版本?
直接从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下载vagrant),然后sudo dpkg -i vagrant_1.8.1_x86_64.deb