sudo
dpkg -l |
grep
php|
awk
'{print $2}'
|
tr
"\n"
" "
sudo
apt-get
install
aptitude
sudo
aptitude purge `dpkg -l |
grep
php|
awk
'{print $2}'
|
tr
"\n"
" "
`
//移除了已安装的php包
sudo add-apt-repository ppa:ondrej/php //添加了ppa 但ppa里面找不到5.6
sudo apt-get update //更新apt-get
sudo apt-get install php5.6 //安装php5.6
出现如下报错↓
Reading state information... Done
E: Unable to locate package php5.6
E: Couldn't find any package by glob 'php5.6 '
E: Couldn't find any package by regex 'php5.6 '
是不是php5.6 已经不能用了? 但是6月3号 用另一台电脑却能安装php5.6
求大神!!!