How do I force configuration of partially installed packages?

Whenever I run aptitude safe-upgrade, I get this output:

The following partially installed packages will be configured:
  cups gconf2 ufw update-manager 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

How can I configure the four mentioned packages?

I tried dpkg-reconfigure gconf2 but that fails with

/usr/sbin/dpkg-reconfigure: gconf2 is broken or not fully installed

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

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

Solution 2

This command fixed my problem:

apt-get --purge remove program_name

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

Solution 3

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.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply