打印

PHP安装失败,Nginx和Mysql成功

PHP安装失败,Nginx和Mysql成功

本地虚拟机系统信息
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!
附件: 您所在的用户组无法下载或查看附件

TOP

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 后重新安装试试

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP