当我尝试为apache安装libapache2-mod-fastcgi时如下:
操作系统:Ubuntu 14.04
root@server:~# sudo apt-get install libapache2-mod-fastcgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-fastcgi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libapache2-mod-fastcgi (2.4.7~0910052141-1.1) ...
dpkg: error processing package libapache2-mod-fastcgi (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-fastcgi
E: Sub-process /usr/bin/dpkg returned an error code (1)
怎么了?我之前在Ubuntu上做过这个,但这次出现了错误。
sudo dpkg --configure -a
和sudo apt-get install -f
Setting up libapache2-mod-fastcgi (2.4.7~0910052141-1.1) ...
dpkg: error processing package libapache2-mod-fastcgi (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-fastcgi
答案 0 :(得分:1)
有一个更好的解决方案(你的不适合我):
卸载模块
sudo apt-get remove --auto-remove libapache2-mod-fastcgi
清除配置/数据
sudo apt-get purge --auto-remove libapache2-mod-fastcgi
然后你可以安装模块
sudo apt-get install libapache2-mod-fastcgi