So I am trying to install these two packages. I first tried doing the following
sudo apt-get update
sudo apt-get install -yy apache2 libapache2-mod-fastcgi php-fpmthis returned:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-fastcgi
E: Unable to locate package php-fpmSo I then tried:
sudo apt-get update
sudo apt-get install -yy apache2
sudo apt-get install -yy libapache2-mod-fastcgi php-fpmThe apache2 will install but for the last line it still gives the same error. I tried looking online if I was perhaps missing a repo, but I couldn't find anything that made me believe so. Next to that I also changed my source.list to have multiverse behind any of them. But this still did not work.. What might be the issue?
my source.list:
deb bionic main multiverse
deb bionic-security main multiverse
deb bionic-updates main multiverseAfter being redirected by one of you to a problem which explained I had to add the universe repo, I did the following:
sudo add-apt-repository universe
sudo apt-get updatethis gives the error:
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 candidateI also tried
sudo add-apt-repository "deb $(lsb_release -sc) main universe restricted multiverse"Thanks everyone!
61 Answer
I came across this problem by doing a Digital Ocean tutorial whilst trying to set-up an NGINX Apache2 reverse proxy. Turns out the tutorial was wrong and that libapache2-mod-fastcgi package isn't available in the Ubuntu repositories, so the command they gave was incorrect. It has to be obtained externally (at least now, maybe it was accurate before).
Funnily enough I found the correct way to do it in a different Digital Ocean tutorial, which can be viewed below along with the source.
These commands worked for me:
wget
sudo dpkg -i libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb 2