Ubuntu – Really force remove a package.

2012-09-17 140 words 1 min read

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.

Ubuntu-Desktop
Ubuntu-Desktop (Photo credit: Kevin Byrom)
Enhanced by Zemanta

author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it