vagrant - 命令 'vagrant box add' 失败

标签 vagrant

vagrantup.com说输入 vagrant box add hashicorp/precise32 , 但是当我输入时,终端输出错误信息:

This command was not invoked properly. The help for this command is
available below.

Usage: vagrant box add <name> <url> [--provider provider] [-h]

然后,我输入 vagrant box add hashicorp/precise32 \ http://files.vagrantup.com/hashicorp/precise32.box ,
但下载失败,并显示以下错误消息。
Download failed. Will try another box URL if there is one.
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/XXXX/ http:/files.vagrantup.com/precise32.box

如何安装 vagrant box?

最佳答案

vagrant box add 的语法由于 Vagrant Cloud,子命令在 1.5 版中发生了变化。介绍。

从输出消息看来,您使用的是旧版本,因此当前文档对您的情况不可靠。

Here您可以找到旧文档的快照,无论如何您需要使用的语法如下:

vagrant box add precise32 http://files.vagrantup.com/precise32.box

关于vagrant - 命令 'vagrant box add' 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23289943/

相关文章:

ruby - 首先 vagrant up 有效,但在停止/启动后出现 ruby​​ 错误

php - 家园:错误! tar解压解压错误

plugins - 安装 vagrant-vsphere 插件

vagrant - Vagrant-为VirtualBox设置虚拟硬盘驱动器的位置

virtualbox - vagrant:更好地访问 "reset"我的访客 vagrant 虚拟机网络吗?

vagrant - 将供应脚本中的值返回给 vagrant

Vagrant 错误: VT-x/AMD-V hardware acceleration is missing

ubuntu - Teamviewer 访问 Ubuntu

ruby - 除非我在回家的路上,否则 Vagrant 不会启动

ruby - Laravel Homestead 的 Vagrantfile : where is $confDir supposed to be set?