Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 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, see the FAQ.

1 Answer

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.