aptitude dist-upgrade keeps packages back when it shouldn't

Bug #22083 reported by Michael Vogt
6
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Example (messages translated from german, may not be accurate):

$ sudo aptitude dist-upgrade
The following packages are kept back:
  evolution-webcal gnome-app-install libaudio-dev libcupsys2 zlib-bin

$ sudo apt-get -u dist-upgrade
The following packages will be upgraded:
  evolution-webcal gnome-app-install libaudio-dev libcupsys2 zlib-bin
5 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

The /var/lib/{apt,aptitude,dpkg}/ dirs to reproduce:
http://people.ubuntu.com/~pitti/shots/aptstuff.tar.bz2

Apparently this is serious as it seems to break even security dist-upgrades
sometimes.

Revision history for this message
Michael Vogt (mvo) wrote :

A problem is that aptitude uses a different dist-upgrade algorithm than apt. It
internally uses depcache::mark_all_upgradable(). This algorithm takes the
packagestates into account and will only work (that is upgrade) packages with
aptitude (sticky) state "Unknown" or "Install". The problem is that the three
packages that are held back are in state "DeInstall" because they are marked to
be delted from the auto-delete feature of aptitude.

Revision history for this message
Michael Vogt (mvo) wrote :

Created an attachment (id=3952)
patch that shoudl fix the problem

Revision history for this message
Michael Vogt (mvo) wrote :

Hrm, after some testing of the patch I noticed that it causes a massive
slow-down in the order of 8x slower (from <1sec to 5,5s).

Revision history for this message
Michael Vogt (mvo) wrote :

Created an attachment (id=3957)
improved version that dosn't take ages

Revision history for this message
Michael Vogt (mvo) wrote :

Created an attachment (id=3963)
patch from dburrows that fixes the problem differently

Revision history for this message
Michael Vogt (mvo) wrote :

This problem is fixed with the upload of:

aptitude_0.2.15.9-3ubuntu6

Please reopen if this upload dosn't fix the problem for you.

Cheers,
 Michael

Revision history for this message
Thomas (blockme) wrote :

Hi, on 20th I installed breezy from preview kubuntu.
After this I did an update/upgrade with apt.

After reboot I lost my corepointer and some devices, refering to another bug. I tried to
follow the bug report. In the end I found out, that my udev wasnt at the correct version
so I started aptitude.
Several packages were held back. I marked them manually with '+' and upgraded them. After
this I got a working system back (yesterday 21th).

Is this only a problem about the preview ISO from kubuntu?

greets, thomas

Revision history for this message
Michael Vogt (mvo) wrote :

(In reply to comment #7)
[..]
> After reboot I lost my corepointer and some devices, refering to another bug.
I tried to
> follow the bug report. In the end I found out, that my udev wasnt at the
correct version
> so I started aptitude.
> Several packages were held back. I marked them manually with '+' and upgraded
them. After
> this I got a working system back (yesterday 21th).

This bug was probably not affecting you. Aptitude sometimes holds packages back
for other reasons (e.g. can't fullfill all dependencies).

> Is this only a problem about the preview ISO from kubuntu?

The udev problem affected all version of ubuntu. But it was fixed quickly. It
was a side-effect of anohter bugfix.

Cheers,
 Michael

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.