VPS侦探论坛

 找回密码
 注册
查看: 2398|回复: 1

PHP安装失败,Nginx和Mysql成功

[复制链接]
发表于 2018-7-31 18:39:36 | 显示全部楼层 |阅读模式

本地虚拟机系统信息
vagrant@vagrant-ubuntu-trusty:/data$ uname -a
Linux vagrant-ubuntu-trusty 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


错误
Error: PHP install failed.
Sorry, Failed to install LNMP!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-7-31 19:02:13 | 显示全部楼层


W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/dists/vivid-backports/restricted/i18n/Translation-en  Unable to connect to mirrors.ustc.edu.cn:http: [IP: 2001:da8:e4c1:200::fba4:605b 80]

W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/dists/vivid-backports/universe/i18n/Translation-en  Unable to connect to mirrors.ustc.edu.cn:http: [IP: 2001:da8:e4c1:200::fba4:605b 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

你系统源解析到了ipv6地址,可能你机器上没有ipv6,无法访问,可以尝试将系统上的ipv6禁用看看
编辑 /etc/sysctl.conf
添加
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
保存,执行  sysctl -p 后重新安装试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-19 11:20 , Processed in 0.026065 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表