【问题标题】:Could not open file error with Vagrant Up command无法使用 Vagrant Up 命令打开文件错误
【发布时间】:2015-02-13 22:49:42
【问题描述】:

有人知道我能做些什么来解决这个问题吗?我是 Vagrant 的菜鸟。

Crystal:~ Adam$ 
Crystal:~ Adam$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Adding box 'base' (v0) for provider: virtualbox
    default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /Users/Adam/base
Crystal:~ Adam$ 

【问题讨论】:

    标签: vagrant


    【解决方案1】:

    看起来您的情况与此 SO 问题中描述的情况相同:Error when trying vagrant up。我的回答在这里重复:

    您可能只使用vagrant init 创建了一个 Vagrant 项目。这将创建您的 Vagrantfile,但不会定义框。

    相反,您可以尝试使用标准 Ubuntu 映像的 vagrant init hashicorp/precise32。 Vagrant 网站有一个Getting Started,它提供了一些很好的例子。

    【讨论】:

    • 你能在这里发布一份你的 Vagrantfile 的副本以防万一吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-30
    • 1970-01-01
    • 1970-01-01
    • 2017-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多