21

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
31

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

| improve this answer | |
  • Might be useful to some. During autoremove I got one additional error: E: Could not perform immediate configuration on SOMEPACKAGE. That was resolved by apt-get install -o APT::Immediate-Configure=false -f apt SOMEPACKAGE – dnsmkl Mar 3 '15 at 19:50
  • for me in a similar situation apt-get autoremove does not work and results in many errors c.f.: pastebin.com/SgM46XE6 how can I get a work around? – Rene Pickhardt Nov 27 '16 at 12:54
  • 1
    Also, it might be useful to run sudo apt-get --fix-broken install. – galath Jul 15 '17 at 1:08
4

This command fixed my problem:

apt-get --purge remove program_name

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

| improve this answer | |
  • 3
    NOTE: purge means all your settings and possibly some of your data for that application will be removed. So if you care about those please be careful with this. – Lennart Rolland Apr 17 '18 at 21:59
  • In fact, it was precisely the problem that old (no longer working) settings were lying around for me and I needed the updated ones from the latest package. I was upgrading from Ubuntu 14 to 18 and had not modified the settings. So this worked for me. – Jason Dec 16 '19 at 15:15
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.

| improve this answer | |
  • 1
    Better yet, do not use at all. It is never, ever necessary. And if you ever think you need to use it, no, you don't. Ask a question and someone who knows what they are doing will help you solve your dependency issues. – fkraiem Sep 5 '18 at 8:38
  • Well, it solved my issues and I was able to successfully install the new kernel on my system. Though I first installed everything that let itself configure and then forced the solution of a circular dependency problem with that ... Though, you are right - in the hand of a unsuspecting user this command can really wreck havoc ... – Paul Weber Sep 7 '18 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.