php - 找不到盒子 'laravel/homestead'

标签 php ubuntu laravel vagrant laravel-5

尝试配置 laravel 5.1。

克隆了 laravel/homestead

将其克隆到 Home 目录后。尝试运行 vagrant up 命令时抛出错误,如下所示:

user@user:~/laravel/homestead$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The box 'laravel/homestead' could not be found.

I first tried with vagrant box add laravel/homestead

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

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

        --checksum VALUE             Checksum
        --checksum-type VALUE        Checksum type
    -c, --clean                      Remove old temporary download if it exists.
    -f, --force                      Overwrite an existing box if it exists.
        --insecure                   If set, SSL certs will not be validated.
        --cacert certfile            CA certificate
        --cert certfile              The client SSL cert
        --provider provider          The provider that backs 

Also tried passing url as the error shown, still failed. Atlast cloned from the git repo

<强>1。 vagrant -v : Vagrant 1.4.3

<强>2。 vagrant box 添加 laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead

错误:

Downloading box from URL: https://atlas.hashicorp.com/laravel/boxes/homestead
Extracting box...e: 0/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: Error opening archive: Unrecognized archive format

<强>3。宅基地:

Laravel Homestead version 2.0.17

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  destroy    Destroy the Homestead machine
  edit       Edit the Homestead.yaml file
  halt       Halt the Homestead machine
  help       Displays help for a command
  init       Create a stub Homestead.yaml file
  list       Lists commands
  provision  Re-provisions the Homestead machine
  resume     Resume the suspended Homestead machine
  run        Run commands through the Homestead machine via SSH
  ssh        Login to the Homestead machine via SSH
  status     Get the status of the Homestead machine
  suspend    Suspend the Homestead machine
  up         Start the Homestead machine
  update     Update the Homestead machine image

我做错了什么?

最佳答案

更新您的 Vagrant。 Vagrant Cloud 是在 1.5 IRC 中引入的,因此你的 vagrant 不明白如何处理像 vagrant box add laravel/homestead

这样的命令

关于php - 找不到盒子 'laravel/homestead',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30750232/

相关文章:

php - CREATE IDENTIFIER ----使用php将2个表单数据插入到一张表中

ubuntu - 无法在 Ubuntu 上挂载 SAMSUNG_Android

regex - 查找/我的音乐-type f | grep --regex ,仅通过管道传输 mp3 文件的正则表达式?

mysql - 如何在 MySQL 中使用 case 获取特定字段的计数

php - 如何构建可在多个 PHP 版本中运行的 PHP 扩展?

PHP/MySQL 将查询结果显示为其他内容

javascript - 从不同文件/页面导出

ubuntu - Gentoo + debootstrap 在与 fakeroot 和 fakechroot 一起使用时失败

mysql - laravel - 将查询结果从 HomeController 传递到主 Blade View

Laravel Scope 通过数据透视值