【发布时间】:2015-11-11 04:39:00
【问题描述】:
我正在尝试在 Ubuntu 上使用 vagrant。
我只是尝试像此处记录的那样初始化 vagrant (https://vagrantcloud.com/ubuntu/boxes/ubuntu-15.04-snappy-core-edge-amd64):
vagrant init ubuntu/ubuntu-15.04-snappy-core-edge-amd64
vagrant up --provider virtualbox
我总是收到错误消息:
* The box 'ubuntu/ubuntu-15.04-snappy-core-edge-amd64' could not be found.
与任何其他框相同的错误。
参考这个问题:Getting The box 'hashicorp/precise32' could not be found on firing 'vagrant up' from terminal in ubuntu,我需要编辑我的Vagrantfile并输入框的url。
但我尝试了类似
的 URLconfig.vm.box_url = "http://files.vagrantup.com/ubuntu-15.04-snappy-core-edge-amd64"
和
config.vm.box_url = "http://files.vagrantup.com/ubuntu/ubuntu-15.04-snappy-core-edge-amd64"
我总是收到 http 404 not found 错误。我只需要正确的 URL,也许我需要做的还不止这些……
【问题讨论】:
-
可以手动添加盒子
vagrant box add ubuntu/ubuntu-15.04-snappy-core-edge-amd64吗? -
用法:vagrant box add
[--provider provider] [-h] -
v1.5中
vagrant box add的用法变了,你用的是什么版本的vagrant? -
哦,就是这样。 1.4.3 已安装,我可能需要为 vagrant 1.5 添加另一个 PPA 或从源安装