I was trying to purge roundup, and aptitude has output the following error lines:
update-rc.d: /etc/init.d/roundup exists during rc.d purge (use -f to force)
dpkg: error processing roundup (--purge):
subprocess installed post-removal script returned error exit status 1
Processing triggers for ureadahead ...
No apport report written because MaxReports has already been reached
Errors were encountered while processing:
roundup
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
aptitude's logs do not help; the following line is written there:
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
but the following two lines appeared in apt/history.log:
Purge: roundup:amd64 (1.4.18-1.1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
roundup, by the way, is an issue-tracking system with command-line, web and e-mail interfaces. I don't use it.
System information: I am using Ubuntu 12.04.4 LTS, output of uname -srvmpio is:
Linux 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
As requested, I have tried the following command:
sudo dpkg -P --force-all --force-remove-reinstreq roundup
and the output was:
Removing roundup ...
update-rc.d: /etc/init.d/roundup exists during rc.d purge (use -f to force)
dpkg: error processing roundup (--purge):
subprocess installed post-removal script returned error exit status 1
Processing triggers for ureadahead ...
Errors were encountered while processing:
roundup
It may worth mentioning that this was done both before and after running the command
sudo update-rc.d -f roundup remove
Update: update the failing attempts to purge, the state of the package, according to aptitude, was H, which means half-installed. I have tried to reinstall it (was successful) and remove it again, but with no luck - same error has appeared, and the state is back again half-installed.