Ubuntu16.04 php5安装失败解决方案

来源:互联网 发布:java调用groovy脚本 编辑:程序博客网 时间:2024/05/18 12:39

笔者在Ubuntu16.04桌面系统安装php5时,提示Package php5 have no installation candidate,

在http://stackoverflow.com/questions/36788873/package-php5-have-no-installation-candidate-ubuntu-16-04上面找到了答案。

However if you like you can add a PPA to get those packages anyways: 
Add the PPA

        add-apt-repository没装的话需执行

     sudo apt-get install software-properties-common python-software-properties 

第一步:sudo add-apt-repository ppa:ondrej/php

Install your PHP Version

第二步:sudo apt-get update 
第三步:sudo apt-get install php5.6

You can install php5.6 modules too ..


参考文档:http://blog.csdn.net/u011511945/article/details/51379480