我使用的是 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 reload
、vagrant provision
和 vagrant 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 destroy
和 vagrant up
关于vagrant - Laravel Homestead 12.7 在 vagrant up 结束时抛出存储库错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69443093/