我已尝试修复问题 "bsdtar: Error opening archive: Unrecognized archive format"
#161但我没有找到一个anwser,
(我使用1.7.4 vagrant这是最新版本。
我首先尝试了这种方法:
C:\Users\1>vagrant box add pip C:\Users\1\Desktop
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'pip' (v0) for provider:
box: Unpacking necessary files from: file://C:/Users/1/Desktop
box:
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/1/Desktop
失败之后我尝试通过网址导入文件,让我得到错误。:
C:\Users\1>vagrant box add pip https://bootstrap.pypa.io/get-pip.py
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'pip' (v0) for provider:
box: Downloading: https://bootstrap.pypa.io/get-pip.py
box: Progress: 100% (Rate: 826k/s, Estimated time remaining: --:--:--
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):
bsdtar.EXE: Error opening archive: Unrecognized archive format
答案 0 :(得分:0)
Vagrant需要一个框路径/网址或Vagrant Atlas上可用的框的名称。你只给它任意不包含盒子的东西。
例如下载Ubuntu Trusty x64框,使用
vagrant box add ubuntu/trusty64