May remove autoremovable non-kernel packages matching pattern from APT::VersionedKernelPackages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
update-manager (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
[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_
[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::VersionedK
As a result in APT's script ".*-modules" becomes "^.*-modules-
...
for package in $(apt-config dump --no-empty --format '%v%n' 'APT::Versioned
for kernel in $kernels; do
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
...
Changed in unattended-upgrades (Ubuntu): | |
importance: | Undecided → High |
summary: |
- May remove non-kernel packages matching patttern from + May remove autoremovable non-kernel packages matching pattern from APT::VersionedKernelPackages |
Changed in update-manager (Ubuntu): | |
importance: | Undecided → High |
Changed in unattended-upgrades (Ubuntu): | |
status: | New → In Progress |
description: | updated |
Changed in update-manager (Ubuntu): | |
status: | New → Confirmed |
This bug was fixed in the package unattended-upgrades - 1.10ubuntu1
---------------
unattended-upgrades (1.10ubuntu1) disco; urgency=medium
* Use defaults in unattended- upgrades. service when the APT configuration is blacklisted_ wrong_origin. py: Fix and enable test
broken. (LP: #1815189)
* test/test_
* Clear cache when autoremoval fails (LP: #1779157)
* Find autoremovable kernel packages using the patterns in APT's way
(LP: #1815494)
* debian/rules: clean frontend locks left by tests before building source
-- Balint Reczey <email address hidden> Mon, 18 Feb 2019 17:26:05 +0100