在ubuntu中安装vagrant?

时间:2017-07-22 22:13:18

标签: ubuntu vagrant

我正在使用ubuntu 14.04。

apt-get install vagrant
vagrant ssh


This Vagrant environment has specified that it requires the Vagrant
version to satisfy the following version requirements:

  >= 1.8

You are running Vagrant 1.4.3, which does not satisify
these requirements. Please change your Vagrant version or update
the Vagrantfile to allow this Vagrant version. However, be warned
that if the Vagrantfile has specified another version, it probably has
good reason to do so, and changing that may cause the environment to
not function properly.

但是转到https://www.vagrantup.com/downloads.html,我可以找到与ubuntu相关的任何下载。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

Ubuntu安装了非常旧版本的Vagrant。您最好只从您链接的Vagrant downloads页面下载并安装软件包。

它在Ubuntu 14.04中干净地安装:

sudo dpkg -i vagrant_1.*_x86_64.deb

您可以使用以下方法轻松删除它:

sudo dpkg -r vagrant

事实上,从下载页面到Debian的vagrant包在大多数其他Linux发行版上都可以正常工作(我也在Gentoo上试过它)。