-1

我在 Ubuntu 系统(14.04)中安装 Vagrant。当我输入“ vagrant up ”时,评论显示以下错误。

Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm * the box 'hashicorp/precise64' could not be found
4

2 回答 2

1

Precise64 是 Ubuntu Server 12.04 LTS。看看这个Ubuntu 盒子

于 2016-09-02T09:36:33.420 回答
0

您使用的是相当旧的 Vagrant 版本 - 我建议您更新,今天的最新版本是1.8.5

因为 vagrant 1.8x vagrant 可以从atlas下载盒子并支持当前版本不支持的盒子版本控制。并且您使用的 Vagrantfile 与您的版本不兼容

如果您可以更新 - 继续更新,它将起作用。(请注意,这些hashicorp/*盒子也有些过时了,所以我建议你切换ubuntu/*到最新的,在你的情况下使用ubuntu/precise64

如果您无法更新(这不是我的建议) - 您将需要手动下载该框(从此链接)并将其添加到您的 vagrant 框中(此之后的命令将是vagrant box add --name ubuntu/precise64 <location of box file downloaded>) and remove thebox_version from your Vagrantfile, you should be able to runvagrant up`

于 2016-09-02T10:46:49.100 回答