Ubuntu 上的 Vagrant:找不到任何盒子

编程入门 行业动态 更新时间:2024-10-24 12:31:45
本文介绍了Ubuntu 上的 Vagrant:找不到任何盒子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试在 Ubuntu 上使用 vagrant.

I am trying to use vagrant on Ubuntu.

我只是尝试像这里记录的那样初始化 vagrant (https://vagrantcloud/ubuntu/boxes/ubuntu-15.04-snappy-core-edge-amd64):

I just tried to init vagrant like documented here (https://vagrantcloud/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/ubuntu-15.04-snappy-core-edge-amd64"

config.vm.box_url = "http://files.vagrantup/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/downloads.html

The quickest way to install the latest version is: Downloading the Debian Version (32bit or 64bit) from https://www.vagrantup/downloads.html

这篇关于Ubuntu 上的 Vagrant:找不到任何盒子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-29 07:40:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1186739.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   盒子   Ubuntu   Vagrant

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!