3

I am unable to install php5-fpm from sudo apt-get install php5-fpm. It says:

No installation candidate.

No .deb repository link available. Does anyone have a solution?

Mochan
  • 1,688
Sanchit
  • 31
  • Try to run sudo apt-get update && sudo apt-get upgrade then try to run sudo apt-get install php5-fpm. Here is the package link http://packages.ubuntu.com/quantal/php5-fpm – devav2 Oct 22 '12 at 13:08
  • @devav2 If it is working on your ubuntu, can u plz paste your sources.list file content. – Sanchit Oct 22 '12 at 13:17
  • It is very similar to one provided here http://ubuntuguide.org/wiki/Ubuntu_Quantal_Repositories with 3rd party repositories added. – devav2 Oct 22 '12 at 13:38
  • Possible duplicate of http://askubuntu.com/questions/14685/what-does-package-package-has-no-installation-candidate-mean – Eliah Kagan Jan 09 '13 at 13:40

3 Answers3

2

Use exact version. sudo apt-get install php5.6-fpm worked for me

1

php5-fpm is available in all supported Ubuntu releases, but is in universe in all of them. Try enabling universe, run sudo apt-get update and then try sudo apt-get install php5-fpm again.

Robie Basak
  • 15,670
  • not in all, for example now is not present in 16.04 – Elzo Valugi Oct 15 '16 at 23:03
  • 4
    It's php7.0-fpm in 16.04, and since 16.04 there's also a php-fpm alias that points to the correct version, so that users don't have to magically know the current version. – Robie Basak Oct 16 '16 at 17:14
0

You haven't stated the Ubuntu version you are using so this is just a wild guess. You are using the Ubuntu version which doesn't yet include php5-fpm package. This could be for various reasons – one most prominent might be the php5 version – php5-fpm was introduced from some point in time.

You have basically two options here:

  1. Upgrade your Ubuntu to more recent version. You can find the availability of php5-fpm here: packages.ubuntu.com/php5-fpm

  2. Upgrade your PHP version to most recent from my PPA, see the answer in another thread here: How do I install PHP 5.4.0?

oerdnj
  • 7,940