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! W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/dists/vivid-backports/restricted/i18n/Translation-enUnable to connect to mirrors.ustc.edu.cn:http:
W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/dists/vivid-backports/universe/i18n/Translation-enUnable to connect to mirrors.ustc.edu.cn:http:
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 后重新安装试试
页:
[1]