This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[RESOLVED] PostgreSQL 9.3 installation

BeatlesFan#1

Sat Nov 15, 2014 9:52:13 pm

Hi,

I'm trying to install PostgreSQL 9.3 and getting following errors:

Setting up postgresql-common (154) ...
/usr/share/postgresql-common/supported-versions: 3: /etc/os-release: OS: not found
dpkg: error processing package postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of postgresql-9.3:
postgresql-9.3 depends on postgresql-common (>= 142~); however:
Package postgresql-common is not configured yet.

dpkg: error processing package postgresql-9.3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-9.3; however:
Package postgresql-9.3 is not configured yet.

dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
postgresql-common
postgresql-9.3
postgresql
Error in function:
Setting up postgresql-common (154) ...
/usr/share/postgresql-common/supported-versions: 3: /etc/os-release: OS: not found
dpkg: error processing package postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of postgresql-9.3:
postgresql-9.3 depends on postgresql-common (>= 142~); however:
Package postgresql-common is not configured yet.

dpkg: error processing package postgresql-9.3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-9.3; however:
Package postgresql-9.3 is not configured yet.

dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured

How do i get around it? :roll:

Thank you,
Stan

Swarfendor437

Sat Nov 15, 2014 10:44:25 pm

Try this guide here:

http://ubuntuhandbook.org/index.php/201 ... ntu-14-04/

Zorin is based on Ubuntu 14.04 but it is only for Desktop, not Server! ;)

Linx

Wed Nov 26, 2014 9:26:57 pm

Try this.

Code:
sudo apt-get update;
sudo apt-get install -y postgresql-9.3


Hope this helps.

BeatlesFan#1

Sat Nov 29, 2014 8:50:57 pm

Thanks for all your help, tried both got errors. So i just installed mySQL. ;)

Linx

Mon Dec 01, 2014 2:39:34 am

What errors did you get?

Can you post them in here?
=D

enbits

Sun Mar 15, 2015 2:59:01 pm

Instailing mysql is not a solution. I found myself with this problem as well, it lies on Postgres not recognizing Zorin as an OS:

"/usr/share/postgresql-common/supported-versions: 3: /etc/os-release: OS: not found "

I solved it by replacing that file from the original on Ubuntu 14.04 distribution:

NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

That way the postgresql-common package will recognize the os.

Swarfendor437

Sun Mar 15, 2015 8:31:39 pm

Thanks for sharing your solution enbits! :D