5

When i try to install fastcgi in ubuntu server 12.04 I get the following error:

sudo apt-get install libapache2-mod-fastcgi


Reading package lists... Done
Building dependency tree       
Reading state information... Done
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

Any solution?

Khaled
  • 35,688
  • 8
  • 69
  • 98
brpaz
  • 179
  • 1
  • 2
  • 9

4 Answers4

14

libapache2-mod-fastcgi can be found in multiverse. If I remember correctly, a default installation of Ubuntu used not to enable multiverse (but should nowadays).

Maybe its disabled on your system and you'll have to add it to the list of repositories (as easy as editing /etc/apt/sources.list and appending multiverse after main or using the graphical packet manager).

Debian ships libapache2-mod-fastcgi as part of non-free by the way, so that's probably a licence issue.

Alex
  • 538
  • 1
  • 4
  • 14
0

This package can be found in ubuntu 12.04 packages as shown here. You may have invalid apt sources. Did you do any changes to your sources?

You can also try to run:

$ sudo apt-get update
$ sudo apt-get upgrade

to update your packages list and upgrade the packages that need to be upgraded.

Khaled
  • 35,688
  • 8
  • 69
  • 98
  • agreed, must be your repository that is setup wrongfully. make sure that in sources.list, you only have 'precise' for the ubuntu deb entries or you may run into package dependency problems in regards to version numbers – mschr Jun 03 '12 at 15:34
0

If you cannot run a proper update/upgrade, try issuing following

sudo apt-get check

and if there are found 'broken dependencies', run what khaled said with -f parameter added, like so:

sudo apt-get -f update
sudo apt-get -f upgrade
mschr
  • 48
  • 1
  • 2
  • 6
0

You can download the .deb file from https://packages.ubuntu.com/xenial/libapache2-mod-fastcgi and install with using sudo dpkg -i filename.deb This solution is work for me.