手动下载几个依赖包:

[shell]wget http://mirrors.sohu.com/ubuntu/pool/main/k/krb5/libkrb53_1.6.dfsg.4~beta1-5ubuntu2_i386.deb
wget http://mirrors.sohu.com/ubuntu/pool/main/i/icu/libicu38_3.8-6ubuntu0.2_i386.deb[/shell]

安装:

[shell]sudo dpkg -i *.deb[/shell]

加入php5源

[shell]sudo echo “deb http://php53.dotdeb.org stable all” >> /etc/apt/sources.list[/shell]

更新源

[shell]sudo apt-get update[/shell]

apt安装

[shell]sudo apt-get install php5-cli php5-common php5-suhosin
sudo apt-get install php5-fpm php5-cgi
[/shell]

如果需要安装php5-mcrypt ,php5-dev,需要手动安装以下依赖包

[shell]# apt-get install php5-mcrypt
wget http://mirrors.sohu.com/debian/pool/main/libt/libtool/libltdl3_1.5.26-4+lenny1_i386.deb
# apt-get install php5-dev
wget http://mirrors.sohu.com/ubuntu/pool/main/libt/libtool/libtool_1.5.26-1ubuntu1_i386.deb[/shell]