在ubuntu 14.04中安装libapache2-mod-fastcgi,软件包不可用

问题描述:

我在安装libapache2-mod-fastcgi模块时遇到了问题,这是我为Apache使用PHP-FPM所必需的。当我尝试使用此命令安装时在ubuntu 14.04中安装libapache2-mod-fastcgi,软件包不可用

sudo apt-get install libapache2-mod-fastcgi 

这会导致此错误。

Package libapache2-mod-fastcgi is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or is only available from another source 

E: Package 'libapache2-mod-fastcgi' has no installation candidate 

我的sources.list看起来像这样

deb http://archive.ubuntu.com/ubuntu trusty main restricted universe 
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe 
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe $ 
deb http://archive.canonical.com/ubuntu trusty partner 

## modifications made here will not survive a re-bundle. 
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg 
## b.) add sources in /etc/apt/sources.list.d 
# 
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to 
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty main 


## distribution. 
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates main 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## review or updates from the Ubuntu security team. 
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty universe 
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates universe 

我曾尝试下面这里列出的方向,但我只是得到错误,当我执行sudo apt-get的更新,所以我删除了这些信息库,因为它使没有区别我仍然无法安装模块,它没有获取任何东西。

+0

我与构建基本相同的问题,虽然它不一致发生。 – Ben

尝试在您的sources.list中添加multiverse,然后apt-get updatesudo apt-get update。它应该做的伎俩。