View Single Post
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#380
Ok. This is the file I have analyzed yesterday. It's pre-remove script, which is invoked just before removing the package itselft. You don't have to be a programmer to understand what's inside. Basicaly it's just check for presence of file defined in $UNINSTALL_NAME variable (the old famous /etc/init.d/imhere-0.3.uninstall file :-)

If it not exists then exit 1 - which means failure = error code(1). You already seen this error: E: Sub-process /usr/bin/dpkg returned an error code (1).
As result uninstallation will fail. If that file exists than packages should be uninstalled normaly (my case).

This was just boring introduction how deb(s) works. I don't understand why you cannot uninstall package the way I mentioned before, anyway you can try at you risk.

Code:
rm /var/lib/dpkg/info/imhere-0.3.prerm
rm /var/lib/dpkg/info/imhere-0.3.postinst
dpkg --purge --force-remove-reinstreq imhere-0.3
Probably it would be good idea to kill process imhere-0.3 before:
Code:
killall imhere-0.3

Last edited by mauron85; 2010-05-07 at 08:39.
 

The Following 4 Users Say Thank You to mauron85 For This Useful Post: