问题描述
我正在尝试在 Ubuntu 上使用 vagrant
.
I am trying to use vagrant
on Ubuntu.
我只是尝试像这里记录的那样初始化 vagrant (https://vagrantcloud.com/ubuntu/boxes/ubuntu-15.04-snappy-core-edge-amd64):
I just tried to init vagrant like documented here (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.
与任何其他框相同的错误.
Same error with any other boxes.
参考这个问题:在 ubuntu 中从终端启动 'vagrant up' 时找不到框 'hashicorp/precise32',我需要编辑我的 Vagrantfile 并输入框的 url.
Referring to this question: Getting The box 'hashicorp/precise32' could not be found on firing 'vagrant up' from terminal in ubuntu, I need to edit my Vagrantfile and enter the url of the box.
但我尝试过像
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,也许我需要做的不止这些...
I always get a http 404 not found error. I just need the correct URL, maybe I need to do more than this...
推荐答案
使用安装的 vagrant 版本
The vagrant version installed using
apt-get install vagrant
是 1.4.3,但需要 1.5 或更高版本.
was 1.4.3, but 1.5 or later was required.
安装最新版本的最快方法是:从以下位置下载 Debian 版本(32 位或 64 位)https://www.vagrantup.com/downloads.html
The quickest way to install the latest version is:Downloading the Debian Version (32bit or 64bit) fromhttps://www.vagrantup.com/downloads.html
这篇关于Ubuntu 上的 Vagrant:找不到任何盒子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!