2014-04-25 9 views
30

vagrantup.com sagt Eingang vagrant box add hashicorp/precise32,

Aber wenn ich Eingabe es, das Terminal Ausgänge Fehlermeldung:Befehl 'vagabundierende Box hinzufügen' nicht bestanden

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

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

Dann I-Eingang vagrant box add hashicorp/precise32 \ http://files.vagrantup.com/hashicorp/precise32.box,
Aber der Download fehlschlagen, mit folgende Fehlermeldung.

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 

Wie kann ich die vagrant box installieren?

Antwort

42

Die Syntax für den Unterbefehl vagrant box add wurde mit der Version 1.5 geändert, aufgrund der Vagrant Cloud Einführung.

Von den Ausgabenachrichten scheint es, dass Sie eine ältere Version verwenden, daher ist die aktuelle Dokumentation für Ihren Fall nicht zuverlässig.

Here Sie eine Momentaufnahme der alten Dokumentation, in jedem Fall finden die Syntax, die Sie verwenden müssen, wie die folgende ist:

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

Ehrfürchtig danke, hatte mich für eine Weile fest. Am Ende habe ich meine Version von Vagrant aktualisiert, die es http://www.vagrantup.com/downloads.html –

+1

behoben habe ich gerade versucht, und bekam eine 404 für Ihre URL. 'http: // files.vagrantup.com/precise32.box' arbeitete jedoch für mich. – Kietz

+0

@Kietz Ich aktualisierte die Antwort mit der Arbeits-URL –

Verwandte Themen