【问题标题】:Vagrant is failing to unpackage Ubuntu Bionic boxVagrant 未能解包 Ubuntu Bionic 盒子
【发布时间】:2020-02-11 15:40:34
【问题描述】:

我在两个不同的主机(MacOS 和 Windows 10)上尝试了以下操作:

vagrant init ubuntu/bionic64
vagrant up

但是在两台机器上我得到同样的错误:

==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'bionic' (v0) for provider:
    box: Unpacking necessary files from: file:///Users/user/Downloads/bionic-server-cloudimg-amd64-vagrant.box
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and that enough disk space
is available and then try again.
The output from attempting to unpackage (if any):

x box.ovf
x Vagrantfile
x metadata.json
x ubuntu-bionic-18.04-cloudimg.mf
x ubuntu-bionic-18.04-cloudimg.vmdk: Truncated tar archive
bsdtar: Error exit delayed from previous errors.

到目前为止,我已经尝试过:

  • 释放 20GB 的磁盘空间
  • 下载盒子并手动解压
  • 使用这个 vagrant box 几个月前的旧版本

但我仍然无法克服这个错误。帮忙?

【问题讨论】:

    标签: vagrant ubuntu-18.04


    【解决方案1】:

    这似乎是带有仿生图像的known widespread issue。在修复之前,以下是一种解决方法:

    1. 从here手动下载盒子
    2. 运行vagrant box add --name ubuntu/bionic64 /path/to/bionic-server-cloudimg-amd64-vagrant.box
    3. 再试vagrant up

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-18
      • 2012-03-30
      • 2015-05-03
      • 1970-01-01
      • 1970-01-01
      • 2018-09-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多