Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryancheung/2e1de13a3036bae217b4 to your computer and use it in GitHub Desktop.
Save ryancheung/2e1de13a3036bae217b4 to your computer and use it in GitHub Desktop.

installing postgresql 9.3.2 on ubuntu 12.04

$ echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment