linux-aws/linux-gke incorrectly producing and using linux-*-tools-common/linux-*-cloud-tools-common

Bug #1688579 reported by Andy Whitcroft on 2017-05-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
High
Andy Whitcroft
Xenial
High
Andy Whitcroft
linux-aws (Ubuntu)
High
Andy Whitcroft
Xenial
High
Andy Whitcroft
linux-gke (Ubuntu)
High
Andy Whitcroft
Xenial
High
Andy Whitcroft

Bug Description

Both linux-aws and linux-gke are producing linux-*-tools-common and linux-*-cloud-tools-common. By shipping common files in this way we create conflicting packages:

$ sudo apt-get install linux-tools-generic
[...]
$ sudo apt-get install linux-tools-gke
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-headers-4.8.0-27
  linux-headers-4.8.0-27-generic linux-image-4.4.0-45-generic linux-image-4.4.0-75-generic linux-image-4.8.0-27-generic
  linux-image-extra-4.4.0-45-generic linux-image-extra-4.4.0-75-generic linux-image-extra-4.8.0-27-generic linux-signed-image-4.4.0-45-generic
  linux-signed-image-4.4.0-75-generic snap-confine ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-gke-tools-4.4.0-1012 linux-gke-tools-common linux-tools-4.4.0-1012-gke
The following NEW packages will be installed
  linux-gke-tools-4.4.0-1012 linux-gke-tools-common linux-tools-4.4.0-1012-gke linux-tools-gke
0 to upgrade, 4 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/804 kB of archives.
After this operation, 2,344 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 427294 files and directories currently installed.)
Preparing to unpack .../linux-gke-tools-common_4.4.0-1012.12_all.deb ...
Unpacking linux-gke-tools-common (4.4.0-1012.12) ...
dpkg: error processing archive /var/cache/apt/archives/linux-gke-tools-common_4.4.0-1012.12_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man8/x86_energy_perf_policy.8.gz', which is also in package linux-tools-common 4.4.0-77.98
Selecting previously unselected package linux-gke-tools-4.4.0-1012.
Preparing to unpack .../linux-gke-tools-4.4.0-1012_4.4.0-1012.12_amd64.deb ...
Unpacking linux-gke-tools-4.4.0-1012 (4.4.0-1012.12) ...
Selecting previously unselected package linux-tools-4.4.0-1012-gke.
Preparing to unpack .../linux-tools-4.4.0-1012-gke_4.4.0-1012.12_amd64.deb ...
Unpacking linux-tools-4.4.0-1012-gke (4.4.0-1012.12) ...
Selecting previously unselected package linux-tools-gke.
Preparing to unpack .../linux-tools-gke_4.4.0.1012.14_amd64.deb ...
Unpacking linux-tools-gke (4.4.0.1012.14) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-gke-tools-common_4.4.0-1012.12_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$

Andy Whitcroft (apw) on 2017-05-05
Changed in linux-aws (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Andy Whitcroft (apw)
Changed in linux-gke (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
importance: Undecided → High
status: New → Confirmed
Changed in linux (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Andy Whitcroft (apw)
Changed in linux (Ubuntu Xenial):
assignee: nobody → Andy Whitcroft (apw)
importance: Undecided → High
status: New → Confirmed
Changed in linux-aws (Ubuntu Xenial):
assignee: nobody → Andy Whitcroft (apw)
importance: Undecided → High
status: New → Confirmed
Changed in linux-gke (Ubuntu Xenial):
assignee: nobody → Andy Whitcroft (apw)
importance: Undecided → High
status: New → Confirmed
Changed in linux (Ubuntu Xenial):
status: Confirmed → Fix Committed
Changed in linux-aws (Ubuntu Xenial):
status: Confirmed → Fix Committed
Changed in linux-gke (Ubuntu Xenial):
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers