我尝试安装php5-fpm
程序包但我有以下信息:
The following packages have unmet dependencies:
php5-fpm : Depends: php5-common (= 5.5.7+dfsg-1+sury.org~quantal+1) but 5.3.10-1ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
以下是完整的终端输出:
root@myserv /home/pw # sudo apt-get install php5-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
和:
root@myserv /home/pw # sudo apt-get install php5-fpm --fix-missing --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-fpm : Depends: php5-common (= 5.5.7+dfsg-1+sury.org~quantal+1) but 5.3.10-1ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
如何修复?
答案1
尝试安装可解决所有依赖问题的php5-fpm
软件包,aptitude
sudo aptitude install php5-fpm
要安装 aptitude,
sudo apt-get install aptitude