[Aptitude-devel] Bug#697748: Bug#697748: aptitude safe-upgrade ignores some trivial upgrades

Daniel Hartwig mandyke at gmail.com
Thu Jan 10 02:21:07 UTC 2013

Control: tags -1 + moreinfo

On 9 January 2013 20:21, Grześ Andruszkiewicz <gandrusz at gmail.com> wrote:
> Hi,
> I marked the fuse-utils as auto before doing the second upgrade.

Did you expect this would change the situation?  Why?

> I am
> 90% confident that aptitude safe-upgrade then produced:
> Will install 0 packages, and remove 0 packages.
> ===============================================================================
> [HOLD, DEPENDENCIES] fuse-utils:i386
> [HOLD, DEPENDENCIES] fuseiso:i386
> ===============================================================================
> aptitude dist-upgrade did the job:
> Will install 1 packages, and remove 1 packages.
> 84.0 kB of disk space will be freed
> ===============================================================================
> [REMOVE, NOT USED] fuse-utils:i386
> [UPGRADE] fuseiso:i386 20070708-2 -> 20070708-3
> ===============================================================================

Safe-upgrade does not guarantee to upgrade all packages.  Neither does
full-upgrade, but full-upgrade will try more aggressively.  The
results can depend on your particular setup and state of packages on
the system.

> PS. I get this kind of situation quite often with packages not
> upgrading without any obvious reason.

If safe-upgrade does not suit your expectations, then use full-upgrade.

The dependencies of fuseiso have changed, one package would be
removed.  I'd call that a fairly obvious reason why safe-upgrade /may/
have avoided this upgrade.  This is certainly not a trivial upgrade.

It is impractical to reconstruct the precise reason that safe-upgrade
avoided these packages after the fact.  To retrieve useful debugging
information, return the system to it's state before the upgrade of rpm
et al., then run:
# aptitude safe-upgrade --log-file=upgrade.log \
   --log-resolver --log-level=aptitude.apt.cache:trace

However, before going through the trouble, note that I don't expect
anyone will take an interest in the logs for this case.  It is a
tiresome process and not worth the effort to /maybe/ squeeze one more
edge case in to safe-upgrade.


More information about the Aptitude-devel mailing list