pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Debraj Manna <subharaj.manna@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres 10 installation failing on Ubuntu 14
Date: Sat, 11 Nov 2017 20:54:05 +0100
Message-ID: <20171111195404.rp4f6mkx3v6k2ljv@msg.df7cb.de> (raw)
In-Reply-To: <CAF6DVKOckdxHsDFKUab3u=HcBCocrANoyfyeD946eR1JFs0bgQ@mail.gmail.com>
References: <CAF6DVKOckdxHsDFKUab3u=HcBCocrANoyfyeD946eR1JFs0bgQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Re: Debraj Manna 2017-11-11 <CAF6DVKOckdxHsDFKUab3u=HcBCocrANoyfyeD946eR1JFs0bgQ@mail.gmail.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


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <20171111195404.rp4f6mkx3v6k2ljv@msg.df7cb.de>
Permalink:  ../20171111195404.rp4f6mkx3v6k2ljv@msg.df7cb.de/
Also on:    postgresql.org/message-id/20171111195404.rp4f6mkx3v6k2ljv@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: myon@debian.org, subharaj.manna@gmail.com
  Subject: Re: Postgres 10 installation failing on Ubuntu 14
  In-Reply-To: <20171111195404.rp4f6mkx3v6k2ljv@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox