【问题标题】:cannot install libapache2-mod-fcgid apache mod无法安装 libapache2-mod-fcgid apache mod
【发布时间】:2014-08-29 15:09:09
【问题描述】:

您好,我尝试安装 libapache2-mod-fcgid mod 但总是出错。

root@mail:~# sudo apt-get install libapache2-mod-fcgid
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-fcgid : Depends: apache2.2-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

没有 fcgid mod 我无法启动 apache 服务器

root@mail:~# service apache2 restart
 * Restarting web server apache2                                         [fail]
 * The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/fcgid.load: Cannot load /usr/lib/apache2/modules/mod_fcgid.so into server: /usr/lib/apache2/modules/mod_fcgid.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.

apache 2.4 版

【问题讨论】:

    标签: apache ubuntu mod-fcgid


    【解决方案1】:

    我知道现在回复有点晚了,但是由于还没有答案,我会放一个。

    在这种情况下,不满足来自libapache2-mod-fcgid 的依赖关系。在这种情况下,您可以在安装libapache2-mod-fcgid 之前下载并安装apache2.2-common,如下所示:

    sudo apt-get install apache2.2-common
    

    然后尝试您的安装命令。

    【讨论】:

      【解决方案2】:

      这对我有用:2022 年的 Ubuntu 21.10:

      sudo apt-get install -y libapache2-mod-fcgid
      

      【讨论】:

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