6

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.

Robobenklein
  • 1,496

7 Answers7

10

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.

Suor
  • 217
1

I managed to solve it by switching to main server in the ubuntu upgrade dialog box. Previously it was pointing to US

Amir
  • 11
1

I found that "broken" packages were causing problems with the upgrade. My packages (gnuplot) weren't explicitly broken (checked by looking in Synaptic package manager), but were marked to not be upgraded. This type of package will also cause the upgrade to crash; they can be found in the Synaptic package manager by filtering for "Installed (upgradeable)". I simply marked them for deletion, then ran

sudo apt-get dist-upgrade
sudo do-release-upgrade

... so far so good!

David Foerster
  • 36,890
  • 56
  • 97
  • 151
walter
  • 11
0

So I managed to solve the issue, but I am unaware as to how I did so. If you have any idea, I'd still like to know what it is I did that caused the resolution.

Here's exactly what I did.

I ran dist-upgrade and apt-get update/upgrade like a madman, continuously checking my broken and held packages in synaptic, of which I never had any. I had a few leftover packages like ROS libraries which I removed because I didn't want them anyways.

After a two days of waiting, I decided to look at the question referenced to by https://askubuntu.com/users/342922/user342922 . I peered into /var/log/dist-upgrade/apt.log and after seeing some reference to the ROS Libs I removed, I deleted that log file.

Only after I deleted that log file did dist-upgrade ever work. Any Ideas as to why this may have occurred? If prompted I'll move this to a new question, but it's not a pressing matter, just interested.

My odd solution: delete the apt.log file for dist-upgrade.

Robobenklein
  • 1,496
0

I had the same issue, though none of the logs listed anything about broken pages (nor did any output from apt-get).

The solution was to change the mirror that I was downloading my updates from. I typically use a local mirror here in Australia for speed, but it almost-always causes issues during upgrades due to either outdated packages or missing content.

My computer was apparently fully up-to-date, but after I switched my mirror to the Main server and ran:

sudo apt-get update && sudo apt-get dist-upgrade

several new packages got updated. After running update-manager, my Ubuntu 14.04 is was able to correctly upgrade.

davidjb
  • 254
0

After fiddling a while with the different suggestions, what worked for me was commenting the multiverse entries in /etc/apt/sources.list.

Dennis
  • 413
-4

Try remove xserver-xorg-video-all.

Eliah Kagan
  • 119,640