Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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)

share|improve this question

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.

1 Answer 1

According to this thread:

gksudo gedit /var/lib/dpkg/info/postgresql-8.4.prerm

After opening the file add exit 0 after #/bin/sh -e and try to remove again.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.