[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: aptitude is dangerous - any replacement?



Vincent Lefevre <vincent@vinc17.net> writes:

> On 2017-03-21 21:39:40 +0100, Sven Joachim wrote:
>> On 2017-03-21 21:19 +0100, Vincent Lefevre wrote:
>> > aptitude ignores the apt preferences.
>> 
>> Huh?  At least on my systems, it obeys them.
>
> Perhaps with your configuration. And this is probably also true when
> the full resolver is not involved. But this is not the general case.
>
> By default, the apt preferences are such that unstable is preferred
> over experimental. But as explained in
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795228
>
> this is not the case with aptitude's resolver:
>
> | With the SolutionCost of "removals", aptitude doesn't take into account
> | installing by priorities or non-default releases, it just tries to
> | minimise the removals, so seing that it could solve the problem by
> | upgrading to 2.7-1~exp1, it just did that.

That appears (from my experience and reading for a few minutes, at any
rate) to only come into play when there are conflicts to be resolved.
In the normal case my experience is that the pinnings I've selected
appear to be honored.

All the same, thanks for alerting me to the SolutionCost setting.  I've
also got it set to "removals" which, after reading a bit, doesn't look
like a good idea.


Reply to: