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

Bug #128681 reported by Craig Sampson
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Baltix)
Invalid
Undecided
Unassigned
apt (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Gutsy by Maciej Strzelecki
Nominated for Intrepid by Stefan Fleiter
Nominated for Lucid by LK-
aptitude (Ubuntu)
Invalid
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

Revision history for this message
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

Revision history for this message
Craig Sampson (ubuntu-psi-aus) wrote :

Hmm. How does one close a bug report?

Craig

Revision history for this message
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!

Revision history for this message
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.

Revision history for this message
Maciej Strzelecki (mstrzele) wrote :

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

Revision history for this message
libertyernie (libertyernie) wrote : Re: [Bug 128681] Re: [gutsy] Aptitude doesn't honour recommended packages properly

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

Revision history for this message
libertyernie (libertyernie) wrote : Re: [gutsy] Aptitude doesn't honour recommended packages properly

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

Revision history for this message
ubuntu_demon (ubuntu-demon) wrote :
Revision history for this message
libertyernie (libertyernie) wrote : Re: [Bug 128681] Re: [gutsy] Aptitude doesn't honour recommended packages properly

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

Revision history for this message
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.

Revision history for this message
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)
Changed in aptitude:
status: New → Invalid
Changed in apt:
status: New → Confirmed
Revision history for this message
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.

Revision history for this message
libertyernie (libertyernie) wrote : Re: [Bug 128681] Re: [gutsy] Aptitude doesn't handle recommends properly & doesn't remove unneeded dependencies automaticall

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

Changed in apt:
status: Confirmed → Triaged
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

Confirmed also in hardy

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

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

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

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

Revision history for this message
libertyernie (libertyernie) wrote : Re: [Bug 128681] Re: [gutsy] Aptitude doesn't handle recommends properly & doesn't remove unneeded dependencies automatically

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.

Revision history for this message
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
Revision history for this message
xteejx (xteejx-deactivatedaccount) 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
Revision history for this message
xteejx (xteejx-deactivatedaccount) 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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.