pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgres 10 installation failing on Ubuntu 14
2+ messages / 2 participants
[nested] [flat]

* Postgres 10 installation failing on Ubuntu 14
@ 2017-11-11 17:19  Debraj Manna <subharaj.manna@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Debraj Manna @ 2017-11-11 17:19 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I am trying to install postgres 10 on Ubuntu 14. I am already having
postgres 9.5.4 installed. I have followed the following steps for
installing postgres 10 -

sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/
trusty-pgdg main"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |
sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-10


But it is failing with the below error

The complete installation log is attached.

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?

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

Attachments:

  install_log (application/octet-stream, 5.4K) download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Postgres 10 installation failing on Ubuntu 14
@ 2017-11-11 19:54  Christoph Berg <myon@debian.org>
  parent: Debraj Manna <subharaj.manna@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Christoph Berg @ 2017-11-11 19:54 UTC (permalink / raw)
  To: Debraj Manna <subharaj.manna@gmail.com>; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-11-11 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-11 17:19 Postgres 10 installation failing on Ubuntu 14 Debraj Manna <subharaj.manna@gmail.com>
2017-11-11 19:54 ` Christoph Berg <myon@debian.org>

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