为什么在 Ubuntu 中导入“.box”时“vagrant box add”会产生“bsdtar”错误?

use*_*870 5 macos ubuntu addition vagrant bsdtar

我在 Ubuntu 12.04.2 LTS 中安装了 vagrant 和 virtual box。(流浪者版本1.2.1)。我已经下载了 vagrant box 并执行了 vagrant box add 命令。我收到以下错误:

*vagrant box add base64 package.box

Downloading or copying the box...
Extracting box...te: 147M/s, Estimated time remaining: 0:00:01)
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):
x ./box-disk1.vmdk: Write failed
x ./box.ovf: Write failed
x ./Vagrantfile: Write failed
bsdtar: Error exit delayed from previous errors.*
Run Code Online (Sandbox Code Playgroud)

我对其他版本的 vagrant (如版本 1.2.2、1.0.1、1.3.0)重复了相同的操作,但出现了同样的错误。我确信我添加的 vagrant box 没有损坏,因为我在 mac 机器中使用了相同的并且工作正常......

小智 2

看起来 .box 文件没有损坏,但你的流浪者需要写入权限。我认为你应该检查 vagrant 的安装。