Autoremoval not working reliably

Bug #1429041 reported by Michael Vogt on 2015-03-06
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Undecided
Unassigned
Precise
Undecided
Unassigned
Trusty
Undecided
Unassigned
Utopic
Undecided
Unassigned

Bug Description

[ SRU Justification ]
The APT::Never-MarkAuto-Sections in precise is not working reliable. Apt is not always looking at the section of the version to be installed but instead may look at a random versions section.

This breaks "apt-get autoremove" for no-longer-required kernels.

[ Test Case ]
See comment #2

[ Regression Potential ]
Slim to none, assuming the test case passes well. We can't really make this more broken than it is, except by suddenly marking ALL things manual (or all things auto), which the testcase would show.

Michael Vogt (mvo) wrote :
description: updated
Changed in apt (Ubuntu):
status: New → Fix Released
Michael Vogt (mvo) on 2015-03-06
description: updated
Adam Conrad (adconrad) wrote :

This is broken in vivid and utopic as well. A testcase is attached that shows the issue, with output like the following:

http://paste.ubuntu.com/10549928/

Changed in apt (Ubuntu):
status: Fix Released → New
tags: added: patch
Adam Conrad (adconrad) on 2015-03-06
description: updated
description: updated
Michael Vogt (mvo) on 2015-03-06
Changed in apt (Ubuntu Precise):
status: New → In Progress
summary: - Autoremoval not working reliable on precise
+ Autoremoval not working reliably

Hello Michael, or anyone else affected,

Accepted apt into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/0.8.16~exp12ubuntu10.23 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in apt (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Michael Vogt (mvo) on 2015-03-13
Changed in apt (Ubuntu Trusty):
status: New → Incomplete
status: Incomplete → In Progress
Chris Halse Rogers (raof) wrote :

Hello Michael, or anyone else affected,

Accepted apt into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/1.0.1ubuntu2.7 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in apt (Ubuntu Trusty):
status: In Progress → Fix Committed
Brian Murray (brian-murray) wrote :

I verified this in trusty by install the version of apt from -proposed, then installing kernel version 3.13.0-48 and then running apt-get autoremove and received the following message:

bdmurray@bizarro:~/bin$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.13.0-46 linux-headers-3.13.0-46-generic
  linux-image-3.13.0-46-generic linux-image-extra-3.13.0-46-generic
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 271 MB disk space will be freed.
Do you want to continue? [Y/n] n

tags: added: verification-done-trusty
tags: added: verification-needed-precise
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.8.16~exp12ubuntu10.23

---------------
apt (0.8.16~exp12ubuntu10.23) precise-proposed; urgency=low

  * fix auto-removal behavior (thanks to Adam Conrad)
    LP: #1429041
 -- Michael Vogt <email address hidden> Fri, 06 Mar 2015 10:47:36 +0100

Changed in apt (Ubuntu Precise):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for apt has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.0.1ubuntu2.7

---------------
apt (1.0.1ubuntu2.7) trusty-proposed; urgency=low

  * fix auto-removal behavior (thanks to Adam Conrad)
    LP: #1429041
 -- Michael Vogt <email address hidden> Fri, 13 Mar 2015 14:55:31 +0100

Changed in apt (Ubuntu Trusty):
status: Fix Committed → Fix Released
Michael Vogt (mvo) on 2015-05-01
Changed in apt (Ubuntu):
status: New → Fix Released
matt doeller (mattdoeller) wrote :

<email address hidden>

Changed in apt (Ubuntu):
assignee: nobody → matt doeller (mattdoeller)
Adam Conrad (adconrad) on 2015-07-29
Changed in apt (Ubuntu Utopic):
status: New → Won't Fix
Changed in apt (Ubuntu):
assignee: matt doeller (mattdoeller) → nobody
tags: removed: verification-needed-precise
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

Bug attachments