PDA

View Full Version : [ubuntu] Ubuntu 11.04 (Could not calculate the upgrade)



davoudi
May 31st, 2011, 02:40 AM
I received the following error today and I did a search on the net. I tried sudo rm /var/cache/apt/archives/* but it didn't help. Any help is very appreciated.


Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

Please report this bug against the 'update-manager' package and include the following error message:
'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'

mörgæs
May 31st, 2011, 05:43 AM
If you boot the computer and run the commands


sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

what happens?

Bucky Ball
May 31st, 2011, 05:46 AM
Is there enough room on the partition you are upgrading for the upgrade to have headroom to keep temp files and packages etc. In my experience you need more than just the size of the upgrade.

For instance, I have 8.04 on a nearly full partition (small one, 10Gb). When I try and upgrade it won't and tells me not enough room to upgrade, can't calculate.

mörgæs
May 31st, 2011, 06:00 AM
Yes, that is why 'clean' is a good first step.

Bucky Ball
May 31st, 2011, 07:34 AM
Yes, that is why 'clean' is a good first step.

I tried that. Didn't make any difference or anywhere near enough room. ;)

I am going to do a 'clean' 10.04 LTS install over the existing 8.04 LTS instead.

davoudi
June 1st, 2011, 04:24 AM
If you boot the computer and run the commands


sudo apt-get clean
sudo apt-get update
sudo apt-get upgradewhat happens?

Everything went fine. The problem appears when I use graphical update manager. Basically update manager does not behave as it use to. By the way, I did a clean install of Ubuntu 11.04.

linuxinstalledfromhdd
June 1st, 2011, 04:33 AM
Did you try using Bleachbit before you did it to free up more space?

sudo apt-get install bleachbit
sudo bleachbit

davoudi
June 1st, 2011, 04:39 AM
Here is a screenshot.

davoudi
June 1st, 2011, 05:06 AM
Did you try using Bleachbit before you did it to free up more space?

sudo apt-get install bleachbit
sudo bleachbit

I just installed a fresh Ubuntu 11.04 two weeks ago. Why should I have problem with space? Anyhow I am trying to clean things right now.

mörgæs
June 1st, 2011, 09:30 AM
Everything went fine. The problem appears when I use graphical update manager. Basically update manager does not behave as it use to. By the way, I did a clean install of Ubuntu 11.04.

There have been a number of reports on that. Best is just to forget about Update Manager and use the three commands in stead.

mas2265
February 12th, 2012, 02:39 AM
My experience:

I think I had the same or similar error message, trying to upgrade to 11.10. I tried the

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

suggestion. But, what I think did it (maybe in combination with the above) was:

I had noticed that there was a package, kdevelop, that wasn't upgrading for some reason, even though it appeared to be eligible for an update through the ui. As I don't actively use kdevelop, I uninstalled it. The next time I tried to upgrade to 11.10, I got past the problem spot.