[SRU] kernel package names ending with version without flavor are not matched by generated patterns
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Most of the unused kernel packages are automatically removed by u-u, but kernel packages not including the flavor in the name are not removed taking up significant space after some time:
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
linux-
linux-
0 upgraded, 0 newly installed, 17 to remove and 16 not upgraded.
After this operation, 1234 MB disk space will be freed.
Do you want to continue? [Y/n]
[Test Case]
* A new test case is added to autopkgtest (test/autopkgte
* Install linux-gcp-
* Run unattended-upgrades
* Observe linux-gcp-
[Regression Potential]
* With the file name patterns changing u-u may select packages with names matching the patterns but not being versioned kernel packages. In case those packages are autoremovable they are removed by u-u.
To avoid this problem the fix for LP: #1848706 ensures that only linux-related packages are autoremoved in the kernel autoremoval phase.
[Original Bug Text]
Apt ships VersionedKernel
Unattended-upgrades generates the patterns in a similar way and also don't cover linux-kvm-
description: | updated |
tags: | added: id-5cd32966e09b5e33d7d193fc |
description: | updated |
U-u fix: /github. com/mvo5/ unattended- upgrades/ pull/199
https:/