在 Ubuntu LTS 14.04(理想情况下为 1.5+)上为 Laravel Homestead 安装较新的流浪者



有了sudo apt-get updatesudo apt-get upgrade vagrant,Ubuntu告诉我我使用的是最新版本,1.4.3。这个旧版本在尝试设置Laravel Homestead时无法正常工作,其Laravel 5.0文档指出:

如果此操作失败,您可能有一个旧版本的流浪者,需要 框的网址。以下方法应该有效:

流浪者盒子添加拉拉维尔/宅基地 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

5.1+ 的文档指出:

如果此命令失败,请确保您的 Vagrant 安装是最新的。

并完全省略具有该框的完整 URL 的替代项。

如何将我的 Vagrant 安装更新到最新版本?

直接从您需要

的操作系统(应该是 https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb)的 https://www.vagrantup.com/downloads.html 下载流浪者,然后sudo dpkg -i vagrant_1.8.1_x86_64.deb

最新更新