Skip to content
Create a gist now

Instantly share code, notes, and snippets.

installing postgresql 9.3.2 on ubuntu 12.04 . with error fix: ummet dependencies

installing postgresql 9.3.2 on ubuntu 12.04

follow official guide

$ echo "deb precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
$ wget --quiet -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install postgresql-9.3 postgresql-contrib-9.3

you should succesfully installing postgresql 9.3.2 on your machine.

but, if you have same problem like me.

The following packages have ummet dependencies:
  postgresql-9.3 :  Depends: postgresql-client-9.3 but is not going to be installed
                    Depends: postgresql-common (>=1.4.2)...

you should install postgresql-common with specific version like this:

$ sudo apt-get install postgresql-common=151.pgdg12.4+1
$ sudo apt-get install postgresql-9.3 postgresql-contrib-9.3

to find out what the latest specific version is, run:
sudo apt-cache policy postgresql-common

goldan commented Mar 3, 2014

Thank you, it works!


Had to do the same procedure for the package postgresql-client-common. Then did it for postgresql-common and postgres installed fine after that.
Thank you!


+1 Thank you

mcbsys commented Apr 9, 2014

Thanks for this. My notes:

I got stuck on the first step (access denied) until I found This worked:

sudo su -c "echo 'deb precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list"

Not sure if I need postgressql-contrib-9.3. After updating the repository, I went with the command from the official guide (I do need pgadmin):

sudo apt-get install postgresql-9.3 pgadmin3

That command told me that the "extra packages" postgresql-client-common and postgres-common will be installed (among others).
This successfully installed the current PostgreSQL, version 9.3.4.

olukha commented Jun 26, 2014

Thank you



Rustem commented Aug 12, 2014

sudo apt-get install -f


+1 thanks


Thank u bro..:)



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.