Vagrant up - 找不到'ubuntu/vivid64'这个盒子

6
在运行vagrant up命令时,我一直收到以下错误信息:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/vivid64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'ubuntu/vivid64' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/ubuntu/vivid64"]
Error: The requested URL returned error: 404 Not Found

我建议URL出现了问题,但是不知道如何解决。
4个回答

2

其中一种解决方法是允许不安全的下载,这对我来说可以下载盒子。

在Vagrantfile中添加以下内容: config.vm.box_download_insecure = true


2

请问您能否详细说明如何更改URL? - ulyssis2

1

2
这个盒子以前存在,现在已经不存在了。对我来说,Vagrant 的全部意义就是让虚拟机从开发者到开发者、从日期到日期都可以复制。如果底层的盒子消失了,那就有点打破初衷了。 - joonas.fi
如果您想分享初始的盒子状态,您可以随时拍摄自己的快照。 - sisyphus
我有点希望这些盒子能够“永久”托管,但你提到的控制权和可能发布初始盒子状态作为“不同的盒子”的观点很好。 - joonas.fi

0

您可以执行以下步骤之一:

  1. 将Vagrantfile中的内容替换为以下内容(查找等效定义)

    Vagrant.configure("2") do |config| config.vm.box = "larryli/vivid64" end

  2. 删除Vagrantfile并创建一个新的文件。

    rm Vagranfile vagrant init larryli/vivid64 vagrant up


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接