linux-cloud-tools version specific packages are being removed by unattended-upgrade's Remove-Unused-Dependencies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Triaged
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
New
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When running kernel version 4.4.0-78 (for example) and the unattended-upgrade packages installs a new kernel 4.4.0-79 (for example) the linux-cloud-
The linux-cloud-tools package has the hyper-v integration services daemons in it, so it's deletion leaves some of the integration not working.
Could /etc/apt/
Thanks,
Ian.
[Test case (apt)]
Make sure that linux-cloud-tools for protected kernels are listed in APT::NeverAutoR
"^linux-
"^linux-
Those are in 01autoremove-
[Test case (unattended-
* Check the running kernel and install relevant cloud-tools packages:
# uname -a
Linux x-uu-lp-1737637 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@x-
linux-cloud-
linux-headers-
linux-image-
linux-image-
linux-modules-
linux-modules-
# apt install linux-cloud-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
linux-
The following NEW packages will be installed:
linux-
0 upgraded, 3 newly installed, 0 to remove and 17 not upgraded.
Need to get 119 kB of archives.
After this operation, 854 kB of additional disk space will be used.
Do you want to continue? [Y/n]
...
* Mark them autoremovable and configure u-u to autoremove unused packages:
# apt-mark auto linux-cloud-
linux-cloud-
### set Unattended-
# vi /etc/apt/
* The not fixed version of u-u removes the packages:
# unattended-upgrade --dry-run --verbose
...
All upgrades installed
Packages that are auto removed: 'libfreetype6 linux-cloud-
Packages were successfully auto-removed
#
* The fixed version does not:
# unattended-upgrade --dry-run --verbose
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=xenial, o=Ubuntu,
Removing unused kernel packages: linux-cloud-
Keeping auto-removable linux-cloud-
...
[Regression Potential]
* some linux-cloud-tools will linger around, so it takes more space.
[Other info]
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unattended-upgrades 0.90ubuntu0.6
ProcVersionSign
Uname: Linux 4.4.0-79-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
Date: Thu Jun 15 15:27:35 2017
InstallationDate: Installed on 2016-04-25 (415 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
PackageArchitec
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
modified.
modified.
mtime.conffile.
Changed in unattended-upgrades (Ubuntu): | |
status: | New → Triaged |
tags: | added: rls-bb-incoming |
tags: | removed: rls-bb-incoming |
tags: | added: id-5a8ef52aa60dcd08c82dd6d1 |
Changed in apt (Ubuntu Bionic): | |
status: | Triaged → In Progress |
description: | updated |
description: | updated |
Yes, indeed, the packages should be kept but 01autoremove- kernels is generated by /etc/kernel/ postinst. d/apt-auto- removal which is shipped by apt.
Reassigning to apt.