【问题标题】:Laravel Homestead reports incorrect version of Vagrant and thus does not let me run the VMLaravel Homestead 报告错误版本的 Vagrant,因此不允许我运行 VM
【发布时间】:2020-01-20 01:56:03
【问题描述】:

我正在运行 Linux Mint 19.3,并且之前已经多次设置了 Homestead Vagrant 盒子。我正在关注the simple directions on the official site。我已经安装并启动了 Homestead(从发布分支克隆),下载了最新版本的 Vagrant 2.2.6,配置了我的 Homestead.yaml 和主机文件,但是当我运行 vagrant up 时,我得到:

version to satisfy the following version requirements:

  >= 2.2.4

You are running Vagrant 2.0.2, which does not satisfy
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.

这是 mint 的全新安装,机器上没有其他版本的 vagrant。我已经为2.0.2 搜索了整个驱动器,但没有任何结果。为什么它报告错误的版本,直到我“升级”才让我运行?

【问题讨论】:

  • 运行vagrant --version时是否得到如下输出:Vagrant 2.2.6?
  • 不,它说的是 2.0.2。我刚刚下载了最新的 vagrant,不知道这个数字是从哪里来的……

标签: php linux laravel vagrant homestead


【解决方案1】:

您似乎不小心安装了较早版本的 Vagrant 程序。以下是删除当前安装并下载新安装的概述步骤。

卸载 Vagrant:

rm -rf /opt/vagrant
rm -f /usr/bin/vagrant

确保您已安装 VirtualBox:

sudo apt install virtualbox

更新包列表:

sudo apt update

使用 Curl 下载 Vagrant 2.2.6:

curl -O https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.deb

下载后:

sudo apt install ./vagrant_2.2.6_x86_64.deb

验证安装成功:

vagrant --version

预期输出:

Vagrant 2.2.6

【讨论】:

    猜你喜欢
    • 2016-07-06
    • 2016-10-12
    • 2020-02-22
    • 1970-01-01
    • 2015-02-27
    • 2017-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多