aptitude: auto-selects wrong packages
Bug #1335006 reported by
Enrico Weigelt, metux ITS
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-
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.
To post a comment you must log in.
Hi,
Enrico Weigelt, metux ITS wrote: recommends nor setting APT::Install- Recommends seem to
> Aptitude automatically selects recommended packages.
>
> Neither --without-
> have any influence.
At least on Debian I'm always using aptitude with Recommends disabled and it works as expected that way.
APT::Install-
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 people. debian. org/~abe/
--
,''`. | Axel Beckert <email address hidden>, http://
: :' : | 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