Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On Ubuntu Natty when trying to install postgres I get the following error /var/lib/postgresql/8.4/main is not accessible or does not exist How can I fix this?

share|improve this question

2 Answers 2

Have you tried installing a previous revision of postgres? It could just be that something is wrong with the package. Are you trying to install postgres somewhere specific and not going about the installation automatically? If so it might be wanting to install from a source that isn't where it would be expecting it

share|improve this answer
up vote 0 down vote accepted

I found the solution. Apparently the upgrade script is broken so you must uninstall (using "purge") and re-install.

http://ubuntuforums.org/showthread.php?p=8389411&posted=1#post8389411amazon

share|improve this answer
    
Please select this as the correct answer :) –  pauska Jun 24 '11 at 6:36

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.