vagrant - Laravel Homestead 12.7 在 vagrant up 结束时抛出存储库错误

标签 vagrant homestead

我使用的是 Ubuntu 机器。我刚刚克隆了 Laravel Homestead v12.7。

在运行 vagrant up 结束时,我收到以下错误:

The repository 'https://deb.nodesource.com/node_14.x focal Release' no longer has a Release file. The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.

然后我使用 vagrant ssh ssh 进入机器,一切看起来都很好。但是,该网站未显示。

我已经尝试过 vagrant reloadvagrant provisionvagrant reload --provision 但仍然收到该错误。

是否有一些修复可以让 vagrant up 进程正常完成?

已解决

感谢 @user3210614,我将以下行添加到我的 Homestead.yaml 文件中:

#####
# ...
databases:
    - homestead

backup: true

in-flight-service: true

# .....

这样就成功了

最佳答案

我在我的 Windows 机器上遇到了同样的问题,发现有人在 homestead github 上将此作为问题打开:

https://github.com/laravel/homestead/issues/1707

已经发布了一个修复程序,它将在您的 Homestead.yaml 文件中插入 in-flight-service: true 选项,然后 vagrant destroyvagrant up

关于vagrant - Laravel Homestead 12.7 在 vagrant up 结束时抛出存储库错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69443093/

相关文章:

php - 访问 PHP 错误日志 - Puphpet 设置的 Vagrant CentOS VM

vagrant - 如何更改 Vagrant 默认网络范围?

macos - mac OSX Sierra,无法添加 vagrant box laravel/homestead,因为需要 cURL v 9.0.0 或更高版本,并且 libcurl.4.dylib 提供 v7.0.0

php - Vagrant laravel/homestead V0.4.0/v3.0.1 中的 Xdebug

php - 如何在 vagrant 中更改 php.ini?

windows - 使用 vagrant up 时如何设置不同的磁盘?

php - composer update 给出关于私有(private)存储库元数据的 404

laravel - Vagrant Laravel Homestead - 运行 vagrant up 时出错

php - Vagrant + Symfony2 环境 ContextErrorException 奇怪

php - Laravel Homestead Redis 端口转发