Could not perform immediate configuration of 'python-minimal' - Couldn't configure pre-depend multiarch-support for libnih-dbus1 - issues during the upgrade from Ubuntu 10.04 to 12.04 (part 2)



Intro


When performing an upgrade of Ubuntu 10.04 to 12.04 I experienced some serious issues with the python-minimal package that are described in the following bug. What I can only add is that none of the solutions provided there work as there's another issue with the libglib2.0-0 package. Searching for a solution in the Internet results in dozens of blogs written by desperate people that experienced the same issue and had to reinstall their boxes on a new LTS from scratch. I have managed to bypass those issues anyway. The following steps describe a detailed troubleshooting process both with a solution.


Symptoms


  • During the regular upgrade process, when running the following command:
apt-get dist-upgrade

the following error message is being displayed:

E: Could not perform immediate configuration on 'python-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  • When running the following command:
apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

as suggested on the following website another error message is being displayed:

The following packages have unmet dependencies.
  libglib2.0-0: Recommends: libglib2.0-data but it is not going to be installed
                Breaks: gvfs (< 1.8) but 1.6.1-0ubuntu1build1 is to be installed
E: Broken packages

Solution


Please, run the following sequence of commands:
  • apt-get install libglib2.0-dev - install the development version of the package
  • apt-get upgrade - we need to run that one more time as the libglib2.0-dev package makes some significant changes to the system
  • apt-get install -o APT::Immediate-Configure=false -f apt python-minimal - it should work without any issues this time
  • apt-get dist-upgrade
  • follow the regular on-screen instructions to accomplish the upgrade process
  • apt-get autoremove
  • reboot


Notes


Issues described in the above posts are not the only ones that I encountered when upgrading my Ubuntu 10.04 servers to 12.04. Please, take a look on the following post descirbing similar issues both with the troubleshooting process and the solution:

7 comments:

  1. I do:
    apt-get install libglib2.0-dev
    And have this error:

    E: Could not perform immediate configuration on 'python2.7-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

    Can you help mi please.

    ReplyDelete
  2. Tried to update an 10.04 server, too and got the same error. Your solution worked like a charm and the server was successfully updated. Thank you for publishing this tip!

    ReplyDelete
  3. Thank you for your help!

    ReplyDelete
  4. My computer is so messed up I can't do anything. I am running a command now and will post back what happens after I did sudo apt-get dist-upgrade.

    UPDATE: This command pops up after almost everything I type to try to FIX my computer.

    E: Could not perform immediate configuration on 'python2.7-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

    What the heck is going on?!?!?

    ReplyDelete
  5. Thanks for the post, it saved my day.

    ReplyDelete
  6. Thanks. this worked for me :)

    ReplyDelete