Activity log for bug #1815494

Date Who What changed Old value New value Message
2019-02-11 17:15:46 Balint Reczey bug added bug
2019-02-11 17:16:06 Balint Reczey unattended-upgrades (Ubuntu): importance Undecided High
2019-02-11 17:17:39 Balint Reczey summary May remove non-kernel packages matching patttern from APT::VersionedKernelPackages May remove autoremovable non-kernel packages matching pattern from APT::VersionedKernelPackages
2019-02-11 17:17:58 Balint Reczey bug task added update-manager (Ubuntu)
2019-02-11 17:18:07 Balint Reczey update-manager (Ubuntu): importance Undecided High
2019-02-11 17:37:58 Balint Reczey unattended-upgrades (Ubuntu): status New In Progress
2019-02-20 19:23:38 Launchpad Janitor unattended-upgrades (Ubuntu): status In Progress Fix Released
2019-02-21 16:25:17 Łukasz Zemczak unattended-upgrades (Ubuntu Cosmic): status New Fix Committed
2019-02-21 16:25:18 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2019-02-21 16:25:21 Łukasz Zemczak bug added subscriber SRU Verification
2019-02-21 16:25:24 Łukasz Zemczak tags verification-needed verification-needed-cosmic
2019-02-21 16:33:56 Balint Reczey description Unattended-upgrades and Update Manager use the patterns from the APT::VersionedKernelPackages list directly for finding kernel packages to remove while APT uses patterns by attaching version and flavor to them. As a result in APT's script ".*-modules" becomes "^.*-modules-4\.15\.0-45-generic$": ... for package in $(apt-config dump --no-empty --format '%v%n' 'APT::VersionedKernelPackages'); do for kernel in $kernels; do echo " \"^${package}-${kernel}$\";" done ... In unattended-upgrades and update-manager ".*-modules" is used directly for matching and may false identify autoremovable packages as kernel-related ones and remove them (of just offer the removal in case of update-manager): ... Removing unused kernel packages: extra-cmake-modules marking extra-cmake-modules for removal (Reading database ... 31149 files and directories currently installed.) Removing extra-cmake-modules (5.44.0-0ubuntu1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Packages that were successfully auto-removed: extra-cmake-modules ... [Impact] * Non-kernel related autoremovable packages may be removed by unattended-upgrades due to their name matching generic patterns like '.*-modules' which should be applied to versioned kernel packages only. * The fix corrects the way those patterns are handled. [Test Case] * test/test_remove_unused.py checks for correct pattern usage now. [Regression Potential] * Unattended-upgrades may stop removing autoremovable kernels, but the tests also contain cases covering this and u-u's kernel autoremoval still works. [Original Bug Text] Unattended-upgrades and Update Manager use the patterns from the APT::VersionedKernelPackages list directly for finding kernel packages to remove while APT uses patterns by attaching version and flavor to them. As a result in APT's script ".*-modules" becomes "^.*-modules-4\.15\.0-45-generic$": ...         for package in $(apt-config dump --no-empty --format '%v%n' 'APT::VersionedKernelPackages'); do                 for kernel in $kernels; do                         echo " \"^${package}-${kernel}$\";"   done ... In unattended-upgrades and update-manager ".*-modules" is used directly for matching and may false identify autoremovable packages as kernel-related ones and remove them (of just offer the removal in case of update-manager): ... Removing unused kernel packages: extra-cmake-modules marking extra-cmake-modules for removal (Reading database ... 31149 files and directories currently installed.) Removing extra-cmake-modules (5.44.0-0ubuntu1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Packages that were successfully auto-removed: extra-cmake-modules ...
2019-02-21 17:30:56 Łukasz Zemczak unattended-upgrades (Ubuntu Bionic): status New Fix Committed
2019-02-21 17:31:00 Łukasz Zemczak tags verification-needed verification-needed-cosmic verification-needed verification-needed-bionic verification-needed-cosmic
2019-02-22 10:17:16 Balint Reczey tags verification-needed verification-needed-bionic verification-needed-cosmic verification-done-cosmic verification-needed verification-needed-bionic
2019-02-22 10:35:42 Balint Reczey tags verification-done-cosmic verification-needed verification-needed-bionic verification-done-bionic verification-done-cosmic verification-needed
2019-02-28 13:01:25 Łukasz Zemczak unattended-upgrades (Ubuntu Xenial): status New Fix Committed
2019-02-28 13:01:30 Łukasz Zemczak tags verification-done-bionic verification-done-cosmic verification-needed verification-done-bionic verification-done-cosmic verification-needed verification-needed-xenial
2019-02-28 13:20:31 Launchpad Janitor unattended-upgrades (Ubuntu Cosmic): status Fix Committed Fix Released
2019-02-28 13:20:40 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2019-02-28 13:20:51 Launchpad Janitor unattended-upgrades (Ubuntu Bionic): status Fix Committed Fix Released
2019-03-12 17:50:12 Balint Reczey tags verification-done-bionic verification-done-cosmic verification-needed verification-needed-xenial verification-done verification-done-bionic verification-done-cosmic verification-done-xenial
2019-04-25 10:50:00 Launchpad Janitor unattended-upgrades (Ubuntu Xenial): status Fix Committed Fix Released
2023-05-23 11:56:40 Luis Alvarez Pinilla update-manager (Ubuntu): status New Confirmed