【问题标题】:Vagrant on Ubuntu: can't find any boxesUbuntu上的流浪者:找不到任何盒子
【发布时间】: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。

但我尝试了类似

的 URL
config.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 或从源安装

标签: ubuntu vagrant


【解决方案1】:

使用 vagrant 安装的版本

apt-get install vagrant

是 1.4.3,但需要 1.5 或更高版本。

安装最新版本的最快方法是: 从以下位置下载 Debian 版本(32 位或 64 位) https://www.vagrantup.com/downloads.html

【讨论】:

    猜你喜欢
    • 2017-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    相关资源
    最近更新 更多