无法为Apache 2.4安装libapache2-mod-passenger?

时间:2016-03-10 10:42:01

标签: ruby-on-rails apache2 passenger

我目前正在使用https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ownserver/apache/oss/trusty/install_passenger.html在运行Apache 2.4.16的Ubuntu 12.04上安装Passenger。

# sudo apt-get install -y libapache2-mod-passenger
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:
 libapache2-mod-passenger : Depends: apache2-mpm-worker (>= 2.2.9-9) but it is not going to be installed or
                                     apache2-mpm-prefork (>= 2.2.9-9) but it is not going to be installed or
                                     apache2-mpm-itk (>= 2.2.9-9) but it is not going to be installed or
                                     apache2-mpm-event (>= 2.2.9-9) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

2 个答案:

答案 0 :(得分:0)

您需要解决此依赖关系。

libapache2-mod-passenger : Depends on: apache2-mpm-worker (>= 2.2.9-9) but it is not going to be installed or
                                           apache2-mpm-prefork (>= 2.2.9-9) but it is not going to be installed or
                                           apache2-mpm-itk (>= 2.2.9-9) sbut it is not going to be installed or
                                           apache2-mpm-event (>= 2.2.9-9) but it is not going to be installed or

试试这个。它可能会奏效。解决这些依赖关系后,再次启动安装过程。

sudo apt-get install apache2-mpm-worker libapache2-mod-fcgid php5-cgi

答案 1 :(得分:0)

我通过使用不同的存储库来实现它:

http://packages.ubuntu.com/trusty/web/libapache2-mod-passenger

这个与Apache 2.4.16兼容