Ubuntu – Really force remove a package.
I was trying to remove a package on one of the Ubuntu installations the other day and was not able to do so. I tried google and tried all the options mentioned in various forums like “-f”, purge, reinstall and few others but nothing helped. I kept getting some errors about some files being already deleted. I also tried “set -e” in the prompt but the only result I got was terminal also getting killed.
Finally I found the only thing that could work for me was to go to directory **“/var/lib/dkpg/info”**and then delete all files that started with the name of the package. Hope this helps someone.