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?

link|improve this question
2  
Please post the error you are receiving – jishi Mar 2 '11 at 9:06
feedback

migrated from stackoverflow.com Mar 2 '11 at 14:09

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

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown