【问题标题】:Trying to add laravel/homestead to Vagrant finishes in an error: The box failed to unpackage properly尝试将 laravel/homestead 添加到 Vagrant 时出现错误:盒子无法正确解包
【发布时间】:2018-09-13 06:58:47
【问题描述】:

这个问题已经关注了我几天了。 使用:

  • 虚拟盒子 5.2.18
  • Vagrant 2.0.2(还有 2.1.5 版本)
  • MacOS High Sierra 10.13.6
  • Ruby 2.5.1

当我调用命令 vagrant box add laravel/homestead 时,会出现以下错误:

box: Adding box 'laravel/homestead' (v6.3.0) for provider: virtualbox
box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/6.3.0/providers/virtualbox.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):

bsdtar: Error opening archive: Failed to open '/Users/someone/.vagrant.d/tmp/box294969b313e1338f0cd6a347f68be3b599016863'

我的计算机上有 100GB 的可用磁盘空间存储空间,所以这不是问题...

我试过了:

  • 重新安装 Vagrant
  • 更新 macOS
  • 正在删除 vagrant.d/tmp 文件夹并尝试添加框 laravel/homestead,但最终出现错误
  • 降级 Virtual Box
  • 多次重复命令哈哈哈

任何想法将不胜感激

【问题讨论】:

  • 你找到解决办法了吗?

标签: laravel vagrant virtualbox homestead


【解决方案1】:

可能不是 OP 的解决方案,但我在 Windows 操作系统上遇到了与此类似的问题。

盒子未能正确解包。请验证盒子文件 您尝试添加的内容没有损坏,并且有足够的磁盘空间 可用,然后重试。

原来 vagrant 警告的磁盘大小是我的用户目录(磁盘 1)。我将流浪文件本身完全放在不同的磁盘(磁盘2)中。一旦我在磁盘 1 上腾出足够的空间。Vagrant 就可以继续下载了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多