To install postgresql 9.6 on Ubuntu 15.04, I have followed steps from here and here
I am getting this error while installing.
Preparing to unpack .../postgresql-contrib_9.6+180.pgdg16.04+1_all.deb ...
Unpacking postgresql-contrib (9.6+180.pgdg16.04+1) ...
Setting up postgresql-9.6 (9.6.2-1.pgdg16.04+1) ...
Can't locate PgCommon.pm in @INC (you may need to install the PgCommon
module) (@INC contains: /usr/share/postgresql-common
/usr/local/lib/perl5/site_perl/5.24.1/x86_64-linux
/usr/local/lib/perl5/site_perl/5.24.1
/usr/local/lib/perl5/5.24.1/x86_64-linux /usr/local/lib/perl5/5.24.1 .).
BEGIN failed--compilation aborted.
dpkg: error processing package postgresql-9.6 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of postgresql-contrib-9.6:
postgresql-contrib-9.6 depends on postgresql-9.6 (= 9.6.2-1.pgdg16.04+1); however:
Package postgresql-9.6 is not configured yet.
It is saying that Can't locate PgCommon.pm. I am not much familiar with perl modules. So I tried following to install PgCommon but not success.
cpan
cpan >> install PgCommon
Please help me get it installed. Thanks
Output of sudo apt-cache madison postgresql | grep -vi sources
postgresql | 9.6+180.pgdg16.04+1 | http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg/main amd64 Packages
postgresql | 9.4+166bzr2 | http://in.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
apt-cache madison postgresql | grep -vi sources
, add the output to your question, let me know about the output ;) another thing: Do you have to install 9.6? – Ravexina Apr 17 '17 at 07:17http://apt.postgresql.org/pub/repos/apt/dists/
you will find out thatvivid
support does not provided bypostgresql
, neither with Ubuntu itself. upgrade ;) – Ravexina Apr 17 '17 at 07:56