【问题标题】:Can't install libapache2-mod-passenger for Apache 2.4?无法为 Apache 2.4 安装 libapache2-mod-passenger?
【发布时间】:2016-06-25 03:48:52
【问题描述】:

我目前正在使用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.

【问题讨论】:

  • 你能翻译错误信息吗?不是英文的。
  • 完成,请检查

标签: ruby-on-rails apache2 passenger


【解决方案1】:

您需要解决此依赖关系。

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

【讨论】:

  • apache2-mpm-worker 适用于 2.2.9,我得到了 Apache 2.4.16,但我不认为它无缘无故地说 ... but it is not going to be installed
  • 尝试安装sudo apt-get install libapache2-mod-fcgid php5-cgi
【解决方案2】:

我通过使用不同的存储库使其工作:

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

这个兼容 Apache 2.4.16

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-29
    • 2018-11-08
    • 2023-03-24
    • 1970-01-01
    • 2016-02-27
    • 2014-10-22
    • 1970-01-01
    • 2017-02-03
    相关资源
    最近更新 更多