It would be helpful for me to know the error message when you try to remove postgresql, but this should do it:
sudo rm -rf /etc/postgresql /var/lib/postgresql /var/log/postgresql sudo dpkg -P postgresql-8.1 postgresql-client-8.1 postgresql-doc-8.1 If not, please copy&paste the error messages. -- couldn't install postgresql-8.1 correctly https://launchpad.net/bugs/61800 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs