How to force remove an erroneous package in Ubuntu

If things get messy and you weren’t able to remove it using the package management tool (apt-get or aptitude), then you can manually remove the package:

Open /var/lib/dpkg/status as root, “sudo gedit /var/lib/dpkg/status” and search for your package and remove the whole block.

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s