Add linux-modules* packages to VersionedKernelPackages

Bug #1778551 reported by Seth Forshee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Artful
Fix Released
Undecided
Unassigned

Bug Description

== SRU Justification ==

Impact: The 4.15 hwe kernel includes some package shuffling, so the VersionedKernelPackages list in /etc/apt/apt.conf.d/01autoremove needs to be updated to include linux-modules* packages.

Fix: Backport the conf file changes from bionic.

Test Case: Confirm that linux-modules* packages are autoremoved according to the same rules used for linux-image* packages.

Regression Potential: Minimal. Probably the worst case is that some packages that should be autoremoved are not, but since these changes have been in use in bionic for a while now no regressions are expected.

Seth Forshee (sforshee)
Changed in apt (Ubuntu):
status: New → Fix Released
Revision history for this message
Julian Andres Klode (juliank) wrote :

Yup. We probably want an easier test case, though?

Changed in apt (Ubuntu Xenial):
status: New → Triaged
Revision history for this message
Seth Forshee (sforshee) wrote :

Other than simply checking the patterns in the file, I can't think of an easier way to test. If you know of one please let me know. I do currently have a vm set up to let me test it.

Revision history for this message
Seth Forshee (sforshee) wrote :
Revision history for this message
Seth Forshee (sforshee) wrote :

Hmm, now that I actually look at how the file is used, I guess we could verify the list generated by /etc/kernel/postinst.d/apt-auto-removal, couldn't we?

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

Yeah, probably. I have another two fixes queued, so I'll do a 1.2.27 tomorrow with all of them:

https://salsa.debian.org/apt-team/apt/compare/1.2.26...1.2.y

apt (1.2.27) UNRELEASED; urgency=medium

  [ David Kalnischkies ]
  * don't hang if multiple sources use unavailable method (Closes: 870675)
    (LP: #1762766)

  [ Julian Andres Klode ]
  * Fix lock counting in debSystem (LP: #1778547)
  * apt.conf.autoremove: Catch some new Ubuntu module packages (LP: #1778551)

Changed in apt (Ubuntu Artful):
status: New → In Progress
Changed in apt (Ubuntu Xenial):
status: Triaged → In Progress
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Seth, or anyone else affected,

Accepted apt into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/1.2.27 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 on 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-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

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

Changed in apt (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-xenial
Changed in apt (Ubuntu Artful):
status: In Progress → Fix Committed
tags: added: verification-needed-artful
Revision history for this message
Chris J Arges (arges) wrote :

Hello Seth, or anyone else affected,

Accepted apt into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/1.5.2 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 on 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-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. In either case, without details of your testing we will not be able to proceed.

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

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

Packages for test to inject (4 kernels, -20, 21, 22, 23).

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

Verification done. It shows that with apt 1.2.26, the -22 module-extra are removed, despite their kernel being kept, and that's fixed in 1.2.27. Full log attached, highlight:

Before:
The following packages will be REMOVED:
  libfreetype6 linux-image-4.15.0-20-generic linux-image-4.15.0-21-generic
  linux-modules-4.15.0-20-generic linux-modules-4.15.0-21-generic
  linux-modules-extra-4.15.0-20-generic linux-modules-extra-4.15.0-21-generic
  linux-modules-extra-4.15.0-22-generic

After:

The following packages will be REMOVED:
  libfreetype6 linux-image-4.15.0-20-generic linux-image-4.15.0-21-generic
  linux-modules-4.15.0-20-generic linux-modules-4.15.0-21-generic
  linux-modules-extra-4.15.0-20-generic linux-modules-extra-4.15.0-21-generic

tags: added: verification-done-xenial
removed: verification-needed-xenial
Revision history for this message
Julian Andres Klode (juliank) wrote :

Same results on artful

tags: added: verification-done verification-done-artful
removed: verification-needed verification-needed-artful
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.5.2

---------------
apt (1.5.2) artful; urgency=medium

  * apt.conf.autoremove: Catch some new Ubuntu module packages (LP: #1778551)
  * Fix lock counting in debSystem (LP: #1778547)

 -- Julian Andres Klode <email address hidden> Tue, 26 Jun 2018 12:51:24 +0200

Changed in apt (Ubuntu Artful):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update 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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.2.27

---------------
apt (1.2.27) xenial; urgency=medium

  [ David Kalnischkies ]
  * don't hang if multiple sources use unavailable method (Closes: 870675)
    (LP: #1762766)

  [ Julian Andres Klode ]
  * Fix lock counting in debSystem (LP: #1778547)
  * apt.conf.autoremove: Catch some new Ubuntu module packages (LP: #1778551)

 -- Julian Andres Klode <email address hidden> Tue, 26 Jun 2018 12:55:03 +0200

Changed in apt (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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