当我试图安装libriache2-mod-php5 5时,会得到一个错误:
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 resolve the situation:
The following packages have unmet dependencies:
libapache2-mod-php5 : Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or
apache2-mpm-itk but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我已经尝试过apt-获得清洁,更新和升级,以及-f安装,没有改变。
有办法解决这个问题吗?还是有一种简单的方法来手动安装php插件?
发布于 2012-10-10 01:52:45
你是如何安装apache的--从存储库,从Apache的网站,还是编译的?
通常,它会为传统的非线程模型安装apache2-MPM预叉;apache2-mpm-itk是多用户MPM。这两种方法都可以从存储库中安装,而预叉通常是与apache2元打包一起安装的。重新安装apache2似乎应该这样做,或者只是直接安装缺少的软件包,尽管如果您缺少一个软件包,您可能会丢失其他软件包。
手动安装php插件并不是一个解决方案--它依赖于这些包中的一个,因此如果没有它,就不可能正确运行。这就是依赖性。
发布于 2016-11-04 18:58:16
您是在一个已经转移到php7的系统上吗?如果是,请查看这个答案:无法在Ubuntu16.04上安装php5
https://askubuntu.com/questions/198391
复制相似问题