Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I just installed Debian Squeeze to work as a Postgresql server, but when I try to recover a backup something went wrong. After a search, I deleted the cluster (data dir) and uninstalled Postgresql. Afterwards, I was unable to make the server work (install, remove, purge).

What can I do so that apt-get install postgresql would behave as if it was a fresh Debian install?

share|improve this question

migrated from Mar 2 '11 at 14:09

This question came from our site for professional and enthusiast programmers.

Please post the error you are receiving – jishi Mar 2 '11 at 9:06

Really a shot in the dark without the actual error message, but in the olden days, I had to manually delete the user "postgres" before reinstalling would work.

share|improve this answer

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.