ubuntu16.04安装php5出现Package php5 have no installation candidate,解决方法

笔者在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

猜你喜欢

转载自blog.csdn.net/stay_zezo/article/details/78424442