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 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.