Sometimes after a partial upgrade of Ubuntu you suddenly find that it has broken down the System Dependency Tree and now you are unable to revert back the changes.
In such cases there is a very simple command that reinstalls all the distribution packages and reconfigures them automatically.