autoremove keeps *all* providers of virtual rdeps unconditionally

Bug #1472351 reported by Roman Valov
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,
i'm using Ubuntu 14.04 LTS and I have an issue with autoremove command.

The point is that I have Virtualbox package installed that has following tag:

Recommends: linux-headers

As a result autoremove marks all of linux-headers-*/linux-headers-*-generic
packages as required and declines to sweep them. Please check the attached
log file.

Revision history for this message
Roman Valov (reddot) wrote :
Revision history for this message
Adam Conrad (adconrad) wrote :

virtualbox from the Ubuntu archive for trusty has no dependency on linux-headers. You're using a non-Ubuntu package, as can be seen from your apt log above.

Changed in apt (Ubuntu):
status: New → Invalid
Revision history for this message
Roman Valov (reddot) wrote :

Adam, is it really considered to be okay that 3rd party package broke system functionality? I mean it sounds like some kind a way to "attack" a system with dummy deb-package. Moreover I can find several packages that depend on linux-headers-generic in universe repositories.

Probably you can point me out that depending on linux-headers-* isn't recommended by any packaging policy? Unless that I think it's definitely autoremove functionality flaw.

Changed in apt (Ubuntu):
status: Invalid → New
Adam Conrad (adconrad)
summary: - autoremove unable to sweep any linux-headers packages
+ autoremove keeps *all* providers of virtual rdeps unconditionally
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
thermoman (thermoman) wrote :

This is still an issue in 16.04 LTS even with virtualbox-5.1 package from official xenial repository - please see bug #1636203

Revision history for this message
thermoman (thermoman) wrote :

The last comment of mine regarding "official xenial repository" is wrong - I installed virtualbox from the virtualbox.org provided repository.

The virtualbox package from virtualbox.org has

Recommends: [...] module-init-tools, linux-headers-generic | linux-headers-generic-pae | linux-headers-686-pae | linux-headers-amd64 | linux-headers-2.6-686 | linux-headers-2.6-amd64 | linux-headers, linux-image, gcc, make | [...]

whereas the official ubuntu 'virtualbox' packages does not recommends linux-* packages.

Revision history for this message
Julian Andres Klode (juliank) wrote :

This was fixed in yakkety. The fix is also in 1.2.15 in xenial-proposed. But as that one is already uploaded, I'm not going to add an extra xenial task to this bug.

Changed in apt (Ubuntu):
status: Confirmed → Fix Released
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.