Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
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 http://packages.debian.org/squeeze/postgresql-8.4 and manually install all the dependencies?

share|improve this question
    
Try postgresql-9.2, there is no 8.4 in this [repo].(launchpad.net/~pitti/+archive/postgresql/+packages) –  Manuel Jun 18 '13 at 9:55
    
@Manuel, I need strictly 8.4 –  ted Jun 18 '13 at 10:26
add comment

1 Answer

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

sudo touch /etc/apt/sources.list.d/pgdg.list
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
Then import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | 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
add comment

Your Answer

 
discard

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.