I have a custom package installed on my Ubuntu 10.10, and trying to remove it, I got:
$ sudo dpkg -r package
sub-process script post-installation installed returne an error state 127
(the message returned from the command was translated from portuguese(br).
So, I noted that on the installation script of this package, what it did was create an entry on my startup, create a folder on /opt and create a user.
I removed all it created. But now, I just want to remove it from dpkg list, because I want to make my linux like if I never installed this package.
How can I do this?
*.prerm
files is too tedious, you can delete them as well - uninstallation process works with them missing – psukys Jan 24 '18 at 10:30I edited /var/lib/dpkg/info/[packagename].prerm and changed || exit $! to || true
! Thanks – Basj Nov 16 '20 at 16:23