aptitude: auto-selects wrong packages

Bug #1335006 reported by Enrico Weigelt, metux ITS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Aptitude automatically selects recommended packages.

Neither --without-recommends nor setting APT::Install-Recommends seem to have any influence.

Reproduce:

* kick out packages which are just recommended (using apt-get)
* start aptitude
* press "g"

This behavious is observed since several releases, at least existing in several releases
(at least in saucy and trusty).

It renders aptitude virtually unusable in cases where you do NOT want the recommended
packages installed automatically.

Tags: aptitude
Revision history for this message
Axel Beckert (xtaran) wrote : Re: [Bug 1335006] [NEW] aptitude: auto-selects wrong packages

Hi,

Enrico Weigelt, metux ITS wrote:
> Aptitude automatically selects recommended packages.
>
> Neither --without-recommends nor setting APT::Install-Recommends seem to
> have any influence.

At least on Debian I'm always using aptitude with
APT::Install-Recommends disabled and it works as expected that way.
Additionally, we use aptitude-robot with that setting on Precise and
Trusty and it works as expected, too.

> * kick out packages which are just recommended (using apt-get)
> * start aptitude
> * press "g"

Sounds like wrong usage/expectations to me.

Please kick them out with aptitude instead of apt-get and try again.
I'm quite sure, the behaviour you described will be gone.

Background:

In comparison to apt-get, aptitude has the feature that you can
preselect packages without installing them and then install them
later. By default, this happens on the next aptitude call which does
install, upgrade or remove something.

If you installed the packages in question with aptitude, aptitude may
still remember that you told it that you want them once.

Conclusion:

The only potential issue I see here is that the package states from
apt-get are possibly not synced to aptitude in the most intuitive way.

This may be on purpose, though. At least I'm expecting such behaviour
from aptitude and use it to my advantage.

Daniel, any insight from you?

Recommendation:

Don't mix apt-get and aptitude unless you know what you're doing, i.e.
understood what the differences between aptitude and apt-get are. (And
no, I don't mean the different UIs. And yes, there are cases where you
want to mix it explicitly.)

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
  `- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5

Changed in aptitude (Ubuntu):
status: New → Incomplete
Revision history for this message
Enrico Weigelt, metux ITS (metux) wrote :

After some digging, I've found the packages in question in /var/lib/aptitude/pkgstates - all with state 3.

Some some strange reason, aptitude recorded these packages there, even I never installed
them directly. Could this somehow have happened on release-upgrade ?

Revision history for this message
Daniel Hartwig (wigs) wrote : Re: [Bug 1335006] Re: aptitude: auto-selects wrong packages

On 27 June 2014 17:01, Axel Beckert <email address hidden> wrote:
> Hi,
>
> Enrico Weigelt, metux ITS wrote:
>> Aptitude automatically selects recommended packages.
>>
>> Neither --without-recommends nor setting APT::Install-Recommends seem to
>> have any influence.
>
> At least on Debian I'm always using aptitude with
> APT::Install-Recommends disabled and it works as expected that way.
> Additionally, we use aptitude-robot with that setting on Precise and
> Trusty and it works as expected, too.
>
>> * kick out packages which are just recommended (using apt-get)
>> * start aptitude
>> * press "g"
>
> Sounds like wrong usage/expectations to me.
>
> Please kick them out with aptitude instead of apt-get and try again.
> I'm quite sure, the behaviour you described will be gone.
>

Right, that should at least correct things for now.

> Background:
>
> In comparison to apt-get, aptitude has the feature that you can
> preselect packages without installing them and then install them
> later. By default, this happens on the next aptitude call which does
> install, upgrade or remove something.
>
> If you installed the packages in question with aptitude, aptitude may
> still remember that you told it that you want them once.
>

Yes (even if you did not directly ask for those packages). In this
case I think aptitude is confused and some extended state is being
persisted that should not be. I believe there is a similar report on
bugs.d.o.

> Conclusion:
>
> The only potential issue I see here is that the package states from
> apt-get are possibly not synced to aptitude in the most intuitive way.
>

A lot of guess work is involved, and it could never be a perfect match
for what every user expects. But, yes, some improvement could be
made.

> This may be on purpose, though. At least I'm expecting such behaviour
> from aptitude and use it to my advantage.
>
> Daniel, any insight from you?
>

I agree with your recommendation not to mix apt-get and aptitude, even
if there were not a bug here.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for aptitude (Ubuntu) because there has been no activity for 60 days.]

Changed in aptitude (Ubuntu):
status: Incomplete → Expired
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.