使用sudo apt-get update
和sudo apt-get upgrade vagrant
,Ubuntu告诉我我处于最新版本1.4.3
。尝试设置Laravel Homestead时,此旧版本无法正常运行,其documentation for Laravel 5.0个州:
如果失败,您可能需要更旧版本的流浪汉 盒子的网址。以下应该有效:
流浪盒添加laravel /宅基地 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
如果此命令失败,请确保您的Vagrant安装是最新的。
并完全省略了包含该框的完整网址的替代方案。
如何将我的Vagrant安装更新到最新版本?
答案 0 :(得分:2)
直接从https://www.vagrantup.com/downloads.html为您需要的操作系统下载流浪汉(应为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