PHP5-FPM (PHP 5.5) won't install - can't install libsystemd-daemon0

9,891

Solution 1

From this moment, the solution should very easy, just do:

apt-get update
apt-get upgrade

Since it seems that adding another PPAs is too complicated, I have merged all necessary packages into the main repository, so this should not happen anymore.

Edit: JFTR the php5-fpm no longer depends on any systemd component, so it can be installed without the hassle of pulling libsystemd-daemon0.

Solution 2

For anyone (like me) who encountered this and used the repository ppa:ondrej/php5, you'll need their systemd repository as well to get this with apt-get.

sudo add-apt-repository -y ppa:ondrej/systemd
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y php5-fpm
Share:
9,891

Related videos on Youtube

RT Cunningham
Author by

RT Cunningham

I'm a retired U.S. military service member living in the Philippines. My wife, a dual Filipino/American citizen, owns our home there.

Updated on September 18, 2022

Comments

  • RT Cunningham
    RT Cunningham over 1 year

    My server is down because I don't know how to fix this. I'm on Ubuntu 12.04 I use this PHP5 repository: http://ppa.launchpad.net/ondrej/php5/ubuntu precise main

    I've never had a problem until today. A few hours ago, I did an apt-get upgrade and everything went fine until it reached the PHP5-FPM portion:

    The following packages have unmet dependencies: php5-fpm : Depends: libsystemd-daemon0 (>= 31) but it is not installable E: Unable to correct problems, you have held broken packages.

    I tried to install libsystemd-daemon0 but I get a notice that it has no installation candidate. Can someone tell me how to fix this without me pulling what's left of my hair out?

  • oerdnj
    oerdnj over 10 years
    The package is there, but it's overridden by the package in the main Ubuntu repository (for Ubuntu raring). Right now you need to either use apt pinning (man apt_preferences) or manually install the php5-geoip package from the repository. I will think of the way how to override default Ubuntu package in meanwhile.
  • oerdnj
    oerdnj over 10 years
    See my answer below, this is no longer necessary.
  • tedders
    tedders over 10 years
    Thanks! One less thing to worry about in deploy scripts.
  • D-Rock
    D-Rock over 10 years
    With the latest update, on precise I get php5-fpm : Depends: sysv-rc (>= 2.88dsf-24) but 2.88dsf-13.10ubuntu11 is to be installed or file-rc (>= 0.8.16) but it is not installable
  • oerdnj
    oerdnj over 10 years
    This should be also OK now, since the php-geoip packages' version is now higher than main Ubuntu version of php-geiop.
  • oerdnj
    oerdnj over 10 years
    @D-Rock This has been fixed in 5.5.1+dfsg-2+debphp.org~<dist>+2, the php5-fpm package no longer depends on neither systemd nor too new sysv-rc.