Package php5 have no installation candidate解决方案
资料来源 http://blog.csdn.net/mengtianwxs/article/details/54912049
删除所有的股票php包
列出安装的php包 dpkg -l | grep php| awk '{print $2}' |tr "\n" " "
删除不需要的包 sudo aptitude purge php
直接删除全部使用:sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
添加PPA
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6 php5.6-mcrypt php5.6-gd php5.6-mbstring php-gettext
转载于:https://www.cnblogs.com/yisuo/articles/6658032.html