无法安装libapache2-mod-fcgid apache mod

时间:2014-08-29 15:09:09

标签: apache ubuntu mod-fcgid

你好我试图安装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

1 个答案:

答案 0 :(得分:0)

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

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

sudo apt-get install apache2.2-common

然后尝试安装命令。