Debian – How to delete broken packages
1. remove broken packages
1 2 3 4 |
cd /var/lib/dpkg/info; rm <packagename.*> sudo dpkg --purge --force-remove-reinstreq <code><packagename> sudo dpkg --remove --force-remove-reinstreq <code><packagename> sudo dpkg --remove --force-remove-reinstreq --force-depends <package-name></code> |
2. after removing package update your system
1 |
sudo apt-get autoremove && sudo apt-get autoclean &&</code><code></code>sudo apt-get update <code>&&</code><code></code>sudo apt-get upgrade |
3. re-install the package
1 2 3 |
sudo apt-get install -f sudo apt-get install <code><packagename> sudo apt-get install --reinstall <packagename></code><code></code><code> |