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

时间:2015-07-21 06:25:52

标签: php ubuntu apache2 ubuntu-14.04

我在安装libapache2-mod-fastcgi模块时遇到问题,这是我在PHP上使用PHP-FPM所必需的。当我尝试使用此命令安装时

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 update时出现错误,因此我删除了这些存储库,因为它没有任何区别,我仍然无法安装模块,而且它不是'拿东西。

1 个答案:

答案 0 :(得分:1)

尝试在sources.list,然后apt-get updatesudo apt-get update添加多元宇宙。应该这样做。