I am getting this error while executing
sudo apt-get remove postgresql-8.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
closed as too localized by Luis Alvarado♦ Mar 14 '13 at 16:55
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
According to this thread:
After opening the file add