Re: Postgres 10 installation failing on Ubuntu 14

From: Christoph Berg <myon(at)debian(dot)org>
To: Debraj Manna <subharaj(dot)manna(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Postgres 10 installation failing on Ubuntu 14
Date: 2017-11-11 19:54:05
Message-ID: 20171111195404.rp4f6mkx3v6k2ljv@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Re: Debraj Manna 2017-11-11 <CAF6DVKOckdxHsDFKUab3u=HcBCocrANoyfyeD946eR1JFs0bgQ(at)mail(dot)gmail(dot)com>
> invoke-rc.d: unknown initscript, /etc/init.d/postgresql not found.
> dpkg: error processing package postgresql-10 (--configure):
> subprocess installed post-installation script returned error exit status 100
> Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
> Errors were encountered while processing:
> postgresql-10
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> Can someone let me know what is going wrong or how can I install postgres
> 10 on Ubuntu 14?

Hi,

you seem you have several modified postgresql-common configuration
files on disk from a previous installation attempt:

> The following packages will be upgraded:
> libpq-dev libpq5 postgresql-client-common postgresql-common
>
> Setting up postgresql-common (188.pgdg14.04+1) ...
>
> Configuration file '/etc/logrotate.d/postgresql-common'
> ==> File on system created by you or by a script.
> ==> File also in package provided by package maintainer.
> What would you like to do about it ? Your options are:
> Y or I : install the package maintainer's version
> N or O : keep your currently-installed version
> D : show the differences between the versions
> Z : start a shell to examine the situation
> The default action is to keep your current version.
> *** postgresql-common (Y/I/N/O/D/Z) [default=N] ?
> Replacing config file /etc/postgresql-common/createcluster.conf with new version

My guess would be that you have also a "modified"
/etc/init.d/postgresql file in the sense that it got removed. Debian
will respect that, and not reinstall that config file.

To get out of the situation, do

apt-get -o DPkg::Options::=--force-confmiss install --reinstall postgresql-common

Christoph

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Shreeyansh Dba 2017-11-13 10:58:24 Re: FQDN for replication connection in pg_hba.conf
Previous Message Debraj Manna 2017-11-11 17:19:35 Postgres 10 installation failing on Ubuntu 14