[Aptitude-devel] Bug#815551: aptitude: safe-upgrade removes manually installed package if dependency is on hold

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sun Feb 28 01:47:14 GMT 2016


Hi Sven,

2016-02-27 20:46 GMT+00:00 Sven Joachim <svenjoac at gmx.de>:
>>
>>>>>>Also, if you hold and then unhold wine and iceweasel-l10n-de, it keeps
>>>>>>trying to remove them as unused, or did it only happen the first time
>>>>>>(before marking them as hold)?
>>>>>
>>>>>It keeps trying to remove them.
>>>>
>>>>I tried to reproduce it with my versions installed (44) and no luck.
>>
>> Maybe that's because those are the candidate versions, whereas mine are not?
>
> Seems that's indeed the reason.  I bisected the problem, and found
> commit 377f72b53c ("Reinstate auto-installed flag when marking packages
> to keep in apt cache (Closes: #508428)") to be the culprit.

Thanks for your debugging session.

I don't understand very well the relationship though -- in the
original message, when you paste the "versions", they are not marked
as auto-installed (you say "None of these three packages is marked as
manually installed:", but the information shows the contrary, so I
assume that you meant that).

Also, in the first "safe-upgrade", you don't mention if the packages
were marked as auto previously (either on purpose, or wrongly by
aptitude).


>>> BTW, do you have many packages set on hold, or only these ones or very
>>> few?
>>
>> Apart of the mentioned packages, only one.
>
> That package has a reverse dependency which is also held back, and I can
> see that it has been marked as auto-installed as well, which is not
> surprising (anymore).

The commit above might be doing the wrong thing, but it doesn't have
much to do with holds but with marking the packages to "keep", for
example when one selects "Keep packages at current version" in the
interactive resolver.

It doesn't mark them unconditionally as automatic either, it tries to
force the Automatic parameter that was decided elsewhere (presumably,
determined to be the previous state before the current set of
decisions / pending actions was taken).


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list