package linux-tools-common (not installed) failed to install/upgrade: trying to overwrite '/usr/bin/cpupower', which is also in package linux-laptop-tools-common 6.5.0-1006.9

Bug #2052587 reported by Jan Lindström
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

jan@jan-ThinkPad-P1-Gen-6:~/work/mariadb/10.11/mysql-test$ sudo apt-get install linux-tools-6.5.0-14-generic linux-cloud-tools-6.5.0-14-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-cloud-tools-6.5.0-14-generic is already the newest version (6.5.0-14.14).
The following additional packages will be installed:
  hwdata linux-tools-6.5.0-14 linux-tools-common
The following NEW packages will be installed:
  hwdata linux-tools-6.5.0-14 linux-tools-6.5.0-14-generic linux-tools-common
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 452 kB/8.591 kB of archives.
After this operation, 28,6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ly.archive.ubuntu.com/ubuntu mantic-updates/main amd64 linux-tools-common all 6.5.0-15.15 [452 kB]
Fetched 452 kB in 1s (859 kB/s)
Selecting previously unselected package hwdata.
(Reading database ... 536450 files and directories currently installed.)
Preparing to unpack .../hwdata_0.374-1_all.deb ...
Unpacking hwdata (0.374-1) ...
Preparing to unpack .../linux-tools-common_6.5.0-15.15_all.deb ...
Unpacking linux-tools-common (6.5.0-15.15) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_6.5.0-15.15_all.deb (--unpack):
 trying to overwrite '/usr/bin/cpupower', which is also in package linux-laptop-tools-common 6.5.0-1006.9
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package linux-tools-6.5.0-14.
Preparing to unpack .../linux-tools-6.5.0-14_6.5.0-14.14_amd64.deb ...
Unpacking linux-tools-6.5.0-14 (6.5.0-14.14) ...
Selecting previously unselected package linux-tools-6.5.0-14-generic.
Preparing to unpack .../linux-tools-6.5.0-14-generic_6.5.0-14.14_amd64.deb ...
Unpacking linux-tools-6.5.0-14-generic (6.5.0-14.14) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-tools-common_6.5.0-15.15_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
jan@jan-ThinkPad-P1-Gen-6:~/work/mariadb/10.11/mysql-test$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic

ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: linux-tools-common (not installed)
ProcVersionSignature: Ubuntu 6.5.0-14.14-generic 6.5.3
Uname: Linux 6.5.0-14-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.27.0-0ubuntu5
AptOrdering:
 hwdata:amd64: Install
 linux-tools-common:amd64: Install
 linux-tools-6.5.0-14:amd64: Install
 linux-tools-6.5.0-14-generic:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CRDA: N/A
CasperMD5CheckMismatches: ./.disk/casper-uuid-oem ./boot/grub/efi.img ./boot/grub/grub.cfg ./casper/initrd
CasperMD5CheckResult: fail
Date: Wed Feb 7 08:46:38 2024
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-sutton-jammy-amd64-20230811-498
DuplicateSignature:
 package:linux-tools-common:(not installed)
 Unpacking linux-tools-common (6.5.0-15.15) ...
 dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_6.5.0-15.15_all.deb (--unpack):
  trying to overwrite '/usr/bin/cpupower', which is also in package linux-laptop-tools-common 6.5.0-1006.9
ErrorMessage: trying to overwrite '/usr/bin/cpupower', which is also in package linux-laptop-tools-common 6.5.0-1006.9
InstallationDate: Installed on 2023-08-11 (180 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - pc-sutton-jammy-amd64-20230811-498
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-14-generic root=UUID=1e33d8c0-26a1-4a48-930e-5fe39eff7474 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
RelatedPackageVersions: grub-pc 2.12~rc1-10ubuntu4
SourcePackage: linux
Title: package linux-tools-common (not installed) failed to install/upgrade: trying to overwrite '/usr/bin/cpupower', which is also in package linux-laptop-tools-common 6.5.0-1006.9
UpgradeStatus: Upgraded to mantic on 2024-01-02 (36 days ago)
dmi.bios.date: 11/27/2023
dmi.bios.release: 1.16
dmi.bios.vendor: LENOVO
dmi.bios.version: N3ZET29W (1.16 )
dmi.board.asset.tag: Not Available
dmi.board.name: 21FVCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.8
dmi.modalias: dmi:bvnLENOVO:bvrN3ZET29W(1.16):bd11/27/2023:br1.16:efr1.8:svnLENOVO:pn21FVCTO1WW:pvrThinkPadP1Gen6:rvnLENOVO:rn21FVCTO1WW:rvrNotDefined:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21FV_BU_Think_FM_ThinkPadP1Gen6:
dmi.product.family: ThinkPad P1 Gen 6
dmi.product.name: 21FVCTO1WW
dmi.product.sku: LENOVO_MT_21FV_BU_Think_FM_ThinkPad P1 Gen 6
dmi.product.version: ThinkPad P1 Gen 6
dmi.sys.vendor: LENOVO

Revision history for this message
Jan Lindström (janlindstrom) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Juerg Haefliger (juergh) wrote :

Uninstall linux-laptop-tools-common. You should not install any of the linux-laptop packages unless you're on a Lenovo X13s arm64 laptop.

Revision history for this message
Jan Lindström (janlindstrom) wrote :

Doing uninstall did help getting those tools installed but still perf counters do not work:

jan@jan-ThinkPad-P1-Gen-6:~/work/mariadb/10.11/mysql-test$ perf stat -e r5111c4 true
WARNING: event 'N/A' not valid (bits 16,20,22 of config '5111c4' not supported by kernel)!

 Performance counter stats for 'true':

           131.341 cpu_core/r5111c4/

       0,002273140 seconds time elapsed

       0,002294000 seconds user
       0,000000000 seconds sys

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.