按照入门教程操作到 2.2 章节,cd ~/Homestead && Vagrant provision,执行失败?

如题,按照《laravel 入门教程》操作到2.2章节的时候,在新增了sample项目之后,修改homestead.yaml里的相关配置之后,执行cd ~/Homestead && vagrant provision,报错。然后我搜索了相关报错信息,找到一个方法:rm /etc/udev/rules.d/60-vboxadd.rules;然后再vagrant halt;再vagrant up,vagrant provision;结果还是报错。望大神解答,谢谢!

$ vagrant provision
==> homestead-7: Running provisioner: file...
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: C:/Users/DANDEL~1/AppData/Local/Temp/vagrant-shell20170430-9700-1r1rz1p.sh
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Site: homestead.app
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Site: sample.app
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Restarting Nginx
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating MySQL Database
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Postgres Database
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating MySQL Database
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Postgres Database
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Clear Variables
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Update Composer
==> homestead-7:                                                                         
==> homestead-7:   [Composer\Downloader\TransportException]                              
==> homestead-7:   The "https://getcomposer.org/versions" file could not be downloaded: Failed to enable crypto
==> homestead-7:   failed to open stream: operation failed                               
==> homestead-7:                                                                         
==> homestead-7:
==> homestead-7: self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--] [<version>]
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.
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 1

最终,把vagrant 卸了重装,然后重新按照教程操作,没这个问题了。然而还是不知道之前第一次出现这个问题是为啥

8年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!