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
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.