Ubuntu – Unable to upgrade from 14.04 to 14.10 “Cannot Calculate Upgrades”

14.0414.10do-release-upgraderelease-managementupgrade

I just finished backing up my system and when I try to upgrade to Utopic Unicorn, I get the error "Cannot Calculate the upgrades." I ran the upgrade by sudo apt-get dist-upgrade, sudo do-release-upgrade after the GUI method failed, they all gave the same error.

The feedback gives some recommendations:

This can be caused by: 
* Upgrading to a pre-release version of Ubuntu 
* Running the current pre-release version of Ubuntu 
* Unofficial software packages not provided by Ubuntu 

I am not upgrading to a pre-release version nor coming from one, I'm going from Ubuntu 14.04 LTS to 14.10. I have no broken packages and I have unchecked all my non-official software sources in the 'Software & Updates' manager.

My guess left is the Unofficial software packages not provided by Ubuntu. If anyone could give any help as to how to check for unofficial packages using Synaptic or another, my appreciation.

Are there any other factors that may be causing this error and how would I go about checking/fixing those?

Thanks.

Edit: I have no broken or held packages. Everything is up-to-date, and restarting everything or anything has no effect.

Best Answer

Try executing:

grep ERROR /var/log/dist-upgrade/main.log

Hopefully this will show you the names of conflicting packages. For me it was (I broken long line to be easier to read):

2014-10-25 18:15:05,915 ERROR Dist-upgrade failed: 
    'The package 'postgresql-9.3-postgis-2.1' 
    is marked for removal but it is in the removal blacklist.

postgresql-9.3-postgis-2.1 is conflicting package here. It will probably be different one or some for you. You can then remove it/them by:

sudo apt-get remove conflicting-package-1 conflicting-package-2 ...

Then just restart distribution upgrade.

Related Question