无法在 Windows 10 上使用 Vagrant 安装 Laravel homestead

PHP*_*ser 1 vagrant laravel homestead

我刚刚下载了最新版本的 Vagrant 2.2.15 和 VMware。我试着跑

vagrant box add laravel/homestead
Run Code Online (Sandbox Code Playgroud)

但我得到

The box 'laravel/homestead' could not be found or could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, please verify you're logged in via
Run Code Online (Sandbox Code Playgroud)

vagrant login. 另外,请仔细检查名称。展开后的 URL 和错误消息如下所示:

URL: ["https://vagrantcloud.com/laravel/homestead"]
Error: schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Run Code Online (Sandbox Code Playgroud)

检查https://app.vagrantup.com/laravel/boxes/homestead 后,我运行

vagrant init laravel/homestead
Run Code Online (Sandbox Code Playgroud)

然后尝试运行

vagrant up
Run Code Online (Sandbox Code Playgroud)

但是我从来没有让它工作并不断收到相同的错误消息。我找到了这个解决方案https://github.com/hashicorp/vagrant/issues/6764并安装MS Visual C++ 2010 x86 Redistributables 但无法运行vagrant up或什至不知道如何在上次更新后安装宅基地。我曾经多次以相同的方式安装它而没有问题,但今天我不能

我试过

vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
Run Code Online (Sandbox Code Playgroud)

但我得到

There was an error while downloading the metadata for this box.
The error message is shown below:

schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Run Code Online (Sandbox Code Playgroud)

我在这里检查了温度,.vagrant.d\tmp但它是空的。在 Windows 10 上安装和运行 laravel homestead 有什么帮助吗?

Y M*_*elo 8

对我来说也是卡巴斯基,但您不必每次都可以向卡巴斯基网络可信地址添加例外时禁用它

打开卡巴斯基

  1. 单击左下角的齿轮。
  2. 打开网络设置
  3. 单击“受信任的地址”
  4. 添加:vagrantcloud.com
  5. 节省
  6. 测试
    vagrant up
    vagrant box add laravel/homestead

我假设如果您遇到此问题并且它使用其他防病毒软件,则问题/解决方案是相同的,或者可能是某些代理拦截 https 流量。


卡巴斯基仪表板 网络设置 可信地址

  • 它需要的不仅仅是 vagrant cloud,还有:vagrantcloud-files-production.s3-accelerate.amazonaws.com、app.vagrantup.com、archivist.vagrantup.com、vagrantcloud.com、 (4认同)

小智 5

我们也是最近在使用 Vagrant 2.2.15 版本时才遇到这个错误。我们的答案是降级回 Vagrant 2.2.14。这可能是一个 Vagrant 错误。


小智 5

禁用防病毒软件(在我的例子中是卡巴斯基)为我解决了这个问题。

  • 奇怪,但这也是我的问题,它也对我有用(禁用卡巴斯基 5 分钟,直到启动命令“vagrant up”) (2认同)