简体   繁体   English

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

[英]Can't install libapache2-mod-passenger for Apache 2.4?

I'm currently using https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ownserver/apache/oss/trusty/install_passenger.html to install Passenger on Ubuntu 12.04 running Apache 2.4.16.我目前正在使用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.

You need to resolve this dependency.您需要解决此依赖关系。

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

Try with this.试试这个。 It might work.它可能会起作用。 Also after resolving these dependencies then start the installation process again.同样在解决这些依赖项之后,再次开始安装过程。

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

I got it working by using a different repository:我通过使用不同的存储库让它工作:

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

This one is compatible ith Apache 2.4.16这个兼容 Apache 2.4.16

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM