upgrade 8.10 tool failes because it cannot calculate upgrade

Bug #294134 reported by Grizzly(Francis Smit)
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Incomplete
Undecided
Jean-Baptiste Lallement
Intrepid
Invalid
Undecided
Unassigned

Bug Description

exits with this message:

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

 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

If none of this applies, then please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bugreport.

Revision history for this message
Ilya Barygin (randomaction) wrote :

Grizzly, please attach the files from /var/log/dist-upgrade/ .

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :
Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :
Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

thats it last file from /var/log/dist-upgrade/ term.log is an empty file

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

The cause of the failure is
=====
2008-11-06 04:17:11,226 DEBUG The package 'postgresql-plperl-8.2' is marked for removal but it's in the removal blacklist
2008-11-06 04:17:20,865 ERROR Dist-upgrade failed: 'An essential package would have to be removed'
=====
This is fixed in update-manager 1:0.95.1 .
If the upgrade still fails the workaround is to uninstall postgresql-plperl-8.2 before trying to upgrade.

Changed in update-manager:
status: New → Fix Released
Changed in update-manager:
assignee: nobody → jibel
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Requesting SRU :
- This bugs blocks the upgrade from hardy to intrepid
- The fix is obviously safe
* DistUpgrade/removal_blacklist.cfg:
    - remove overly broad postgresql regexp

The fix has been push into the branch lp:~jibel/update-manager/bug.294134

Revision history for this message
Martin Pitt (pitti) wrote :

Please don't entirely remove the postgresql regexp, it would mean a grave data-loss problem for users of postgresql. If you have postgresql-8.2, postgresql-plperl-8.2 installed, then they should NOT be removed on upgrade to 8.10, where only 8.3 is supported and 8.2 is in universe. postgresql-common will take care of notifying the user and doing the upgrade path.

Please revert this in jaunty.

2008-11-06 04:17:20,865 ERROR Dist-upgrade failed: 'An essential package would have to be removed'

This has got nothing to do with postgresql, which isn't' essential at all.

Changed in update-manager:
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

I don't see a jaunty upload for this, so probably this isn't fixed in jaunty yet either? Can you please clarify why this was set to fixreleased? Thank you!

Changed in update-manager:
status: Fix Released → Incomplete
Revision history for this message
Alexandr Matsievsky (amatsievsky) wrote :

I am trying to upgarade from Ubuntu 8.04.1 to Ubuntu 8.10 and get the same error
Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

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

If none of this applies, then please report this bug against the
'update-manager' package and include the files in
/var/log/dist-upgrade/ in the bugreport.

Revision history for this message
Alexandr Matsievsky (amatsievsky) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Martin, this can be reproduced with the following steps:
- setup a fresh hardy system
- install the package postgresql-plperl-8.2 and it's dependencies
- Upgrade to Intrepid with 'update-manager -d'
and voilà.

The upgrade fails with the error :
2008-11-30 00:14:24,508 DEBUG The package 'postgresql-plperl-8.2' is marked for removal but it's in the removal blacklist
2008-11-30 00:14:29,716 ERROR Dist-upgrade failed: 'A essential package would have to be removed'

This is not reproducible if postgresql-plperl-8.2 is not installed but postgresql-8.2 is.

I don't understand why you say that this has got nothing to do with postgresql because this is the presence of postgresql-plperl-8.2 that makes the upgrade fail ? Maybe my fix was too straightforward but what would be the correct solution ?

I've marked this report "Fix released" because the regex has been dropped in Jaunty, postgresql-8.2 is not available anymore and the issue is the upgrade of the system with plperl 8.2 installed.

Thank you in advance for your advice.

@Alexandr, this is not the same bug. Yours looks like bug 240724 . If you're not sure this is the same then file a new report with the file /var/log/dis-upgrade attached . Thank you

Revision history for this message
xteejx (xteejx) wrote :

Hi,
Is this being changed at least to Confirmed as it is quite easy to reproduce this problem? I can confirm from my commented duplicate that this is current in Hardy and Hardy.1 and reproducible every time in postgresql-plperl-8.2

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fix provided in bug 293486 also addressed this issue.

Changed in update-manager:
status: Incomplete → Invalid
Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 294134] Re: upgrade 8.10 tool failes because it cannot calculate upgrade

Jean-Baptiste Lallement [2008-11-29 23:56 -0000]:
> Martin, this can be reproduced with the following steps:
> - setup a fresh hardy system
> - install the package postgresql-plperl-8.2 and it's dependencies

(Please note that -8.2 isn't present in hardy, and not supported)

Right, I wasn't questioning that there is a bug in the upgrade, I'm
just 99.9% sure that PostgreSQL is a red herring here.

> - Upgrade to Intrepid with 'update-manager -d'
> and voilà.
>
> The upgrade fails with the error :
> 2008-11-30 00:14:24,508 DEBUG The package 'postgresql-plperl-8.2' is marked for removal but it's in the removal blacklist
> 2008-11-30 00:14:29,716 ERROR Dist-upgrade failed: 'A essential package would have to be removed'

The DEBUG line is correct, -8.2 doesn't exist any more in hardy, but
if you still have it installed, it should not be removed. The ERROR
line is the real bug here, but I don't think that it is related to
postgresql-plperl-8.2.

My guess is that -plperl drags in some perl 5.8 library, and the
upgrade to intrepid (which switched to Perl 5.10) got temporarily
confused. Perl gave lots of trouble in other upgrading scenarios as
well.

> I don't understand why you say that this has got nothing to do with
> postgresql because this is the presence of postgresql-plperl-8.2 that
> makes the upgrade fail ?

It's some dependency of -plperl-8.2, yes.

> Maybe my fix was too straightforward but what would be the correct
> solution ?

The fix would be actively wrong, since it basically means that people
who upgrade Ubuntu couldn't upgrade their old 8.x clusters to 8.3 any
more.

> I've marked this report "Fix released" because the regex has been
> dropped in Jaunty, postgresql-8.2 is not available anymore and the issue
> is the upgrade of the system with plperl 8.2 installed.
>

I reopened it because postgresql-* must not be removed on upgrade. It
should be possible to install libperl5.8 and libperl5.10 in parallel,
as with every well-behaved library. I haven't tested this upgrade path
personally yet (since as I said, 8.2 is not supported in hardy), but
I'm willing to bet my lunch that the perl transition is to blame here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.