How do I force configuration of partially installed packages?

Run these codes

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

This will clean and configure your packages


This command fixed my problem:

apt-get --purge remove program_name

But of course you need to try also @ringtail answer.


The answer above did not work for me. I had to run dpkg with the force-depends option, to resolve a circular dependency between some kernels.

sudo dpkg --force-depends --configure -a

This turns all dependency problems into warnings. Use with caution, with minimal scope (install everything that does not have any problems first) and at own risk.

Tags:

Dpkg