[gutsy] Aptitude doesn't handle recommends properly & doesn't remove unneeded dependencies automatically

Bug #128681 reported by Craig Sampson on 2007-07-27
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Baltix)
Undecided
Unassigned
apt (Ubuntu)
Undecided
Unassigned
Nominated for Gutsy by Maciej Strzelecki
Nominated for Intrepid by Stefan Fleiter
Nominated for Lucid by LK-
aptitude (Ubuntu)
Undecided
Unassigned
Nominated for Gutsy by Maciej Strzelecki
Nominated for Intrepid by Stefan Fleiter
Nominated for Lucid by LK-

Bug Description

Binary package hint: aptitude

Aptitude 0.4.5.4

Upgrade from feisty minimal install to gutsy minimal install. Opened aptitude, turn off 'automatically install recommended packages', try to install ubuntu-desktop. The trouble starts here, aptitude is trying to install all the dependency packages as simple 'installs' rather than dependency installs (with the 'A' flag) and is pulling in all the recommends for everything. Makes no difference if the 'automatically install recommended packages' flag is on or off.

Tried deleting .aptitude, no change.

Cheers,
Craig

Craig Sampson (ubuntu-psi-aus) wrote :

This turned out not to be an aptitude fault after all. As I've suffered this condition since the first few days of the gutsy development I started to wonder if 'something' had been left behind causing this strange behaviour. After some snooping the following was found:

/etc/apt/apt.conf.d/01ubuntu

Inside the 01ubuntu file were some directives which caused all meta packages to have their recommends dependencies installed by default no matter what apt-get or aptitude were instructed to do.

Removing 01ubuntu cleared up the problem.

Cheers,
Craig

Craig Sampson (ubuntu-psi-aus) wrote :

Hmm. How does one close a bug report?

Craig

libertyernie (libertyernie) wrote :

Whose idea was the 01ubuntu directives? This doesn't really make sense, as removing metapackages cleanly is the reason I use aptitude!

Craig Sampson (ubuntu-psi-aus) wrote :

Yes, I know. After a bit more thought I suspect its better to leave this bug report open - it does seem to be a bug more than a feature.

Maciej Strzelecki (mstrzele) wrote :

I'm confirming this behaviour on my computer. Is anybody dealing with this bug?

It doesn't seem like it. For a workaround, you can always edit the file.

NOTE: Looks like its 01autoremove, not 01ubuntu.

Nope, it's not. The problem here is that Aptitude is not removing
unneeded depends automatically.

libertyernie (libertyernie) wrote :

Looks like this is two problems in one. Changed description accordingly. Now it's way too long, so if someone could shorten it, that would be great.

libertyernie (libertyernie) wrote :

$ dpkg -S /etc/apt/apt.conf.d/01autoremove /etc/apt/apt.conf.d/01ubuntu
apt: /etc/apt/apt.conf.d/01autoremove
apt: /etc/apt/apt.conf.d/01ubuntu

This is a bug in the apt package, not aptitude.

Rolf Leggewie (r0lf) on 2008-02-14
Changed in aptitude:
status: New → Invalid
Changed in apt:
status: New → Confirmed
PBSurf (pbsurf) wrote :

IMHO, the problem is that the aptitude --without-recommends option does not override the settings in apt.conf.d/01ubuntu. Command line options should have the highest precedence. At the very least, a message should be displayed if a command line option is overridden by a config file setting.

Making it so this option overrides the config file is the best way to
fix this, I think.

Changed in apt:
status: Confirmed → Triaged
Dimitrios Symeonidis (azimout) wrote :

Confirmed also in hardy

Confirmed also for intrepid.
Why not fix it, it is old enough.

Dimitrios Symeonidis (azimout) wrote :

the definition of meta-packages:
https://help.ubuntu.com/community/MetaPackages

Can it be made so that installing a metapackage with aptitude, then
removing it, also automatically removes the packages that metapackage
installed? Of course, that can create its own problems.

LK- (lk07805) wrote :

This bug still exists.
Steps to reproduce
1. sudo aptitude install elinks - all is fine
2. sudo aptitude remove elinks - removes package elinks but does not remove it's installed dependencies

Changed in aptitude (Ubuntu):
status: Invalid → New
Roy Jamison (xteejx) wrote :

This bug has been marked Wishlist as it is not so much a bug, but rather an idea to implement a new feature, so it had been marked as such. Thank you for reporting this to us.

Changed in apt (Ubuntu):
importance: Undecided → Wishlist
Changed in aptitude (Ubuntu):
status: New → Invalid
Roy Jamison (xteejx) wrote :

This bug is being closed, since the affected versions (Gutsy, Intrepid) have reached their End of Life and are no longer supported. If this bug does continue to be a problem in a supported release, i.e. 10.04, 10.10, then please file a new bug report with ubuntu-bug. Thank you.

Changed in apt (Ubuntu):
importance: Wishlist → Undecided
status: Triaged → Invalid
Changed in apt (Baltix):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers