LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I get past "libsystemd0 but it is not installable" issues when trying to intsall PostGres on Ubuntu? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-get-past-libsystemd0-but-it-is-not-installable-issues-when-trying-to-intsall-postgres-on-ubuntu-4175591935/)

laredotornado 10-21-2016 02:45 PM

How do I get past "libsystemd0 but it is not installable" issues when trying to intsall PostGres on Ubuntu?
 
Hi,

I’m trying to install postgresql-9.6 on Ubuntu 14.04. I’m getting these baffling errors …

Code:

        laredotornado@remotebox:~$ sudo apt-get install postgresql-9.6
        Reading package lists... Done
        Building dependency tree     
        Reading state information... Done
        Some packages could not be installed. This may mean that you have
        requested an impossible situation or if you are using the unstable
        distribution that some required packages have not yet been created
        or been moved out of Incoming.
        The following information may help to resolve the situation:
       
        The following packages have unmet dependencies:
        postgresql-9.6 : Depends: postgresql-common (>= 171~) but it is not going to be installed
                          Depends: libsystemd0 but it is not installable
                          Recommends: postgresql-contrib-9.6 but it is not going to be installed
                          Recommends: sysstat but it is not going to be installed
        E: Unable to correct problems, you have held broken packages.

I tried running these commands

Code:

sudo apt-get purge postgr*
sudo apt-get autoremove
sudo apt-get install synaptic
sudo apt-get update

and then I ran the above command again, but I still get the same error. What am I missing?

AlucardZero 10-22-2016 09:30 AM

What did you do to even see postgresql-9.6 on 14.04 ? Did you add a xenial repo or a trusty?

libsystemd0 isn't in 14.04, so it's not going to work as is.

I assume that if you add the trusty repo it will work, but I haven't tried. Alternately, update to 16.04.


All times are GMT -5. The time now is 12:58 PM.