Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
sudo add-apt-repository ppa:pitti/postgresql
# ... OK

sudo apt-get install postgresql-8.4 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package postgresql-8.4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'postgresql-8.4' has no installation candidate

Should I download it from and manually install all the dependencies?

share|improve this question
Try postgresql-9.2, there is no 8.4 in this [repo].( – Manuel Jun 18 '13 at 9:55
@Manuel, I need strictly 8.4 – ted Jun 18 '13 at 10:26

There is an repo. To add it, open a terminal and enter

sudo touch /etc/apt/sources.list.d/pgdg.list
sudo echo "deb precise-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
Then import the repository signing key:
wget --quiet -O - | sudo apt-key add -
sudo apt-get update

share|improve this answer
Sorry, what do you think this sudo add-apt-repository ppa:pitti/postgresql line is doing then?.. – ted Jun 18 '13 at 10:49
But they seem only to backport new versions, not 8.4. Look at the package list. – Manuel Jun 18 '13 at 10:56
Works for me: The following NEW packages will be installed: postgresql-8.4 postgresql-client-8.4 (Yes I realise chances are that was fixed in an edit of the answer) – LovesTha Aug 26 '13 at 23:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.