Removing broken packages on Debian

Recently I had this issue with a Debian server.

apt-get autoremove broke some packages and I was not able to remove them either with apt-get remove, dpkg -P or dpkg –remove –force-remove-reinstreq

What I did was the following:

  • cd /var/lib/dpkg/info
  • rm package_name.*
  • dpkg –purge –force-remove-reinstreq

Then everything was neat 😉

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s