conflicting packages while installing perf

Bug #1877849 reported by fcole90
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I was trying to run perf, but I discovered it was not installed

```
$ perf stat -d so4/so-benchmark 1000000

Command 'perf' not found, but can be installed with:

sudo apt install linux-oem-5.6-tools-common # version 5.6.0-1008.8, or
sudo apt install linux-tools-common # version 5.4.0-29.33
```

So I decided to install the latest version, so as `linux-oem-5.6-tools-common`.
```
$ sudo apt install linux-oem-5.6-tools-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  linux-oem-5.6-tools-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 174 kB of archives.
After this operation, 395 kB of additional disk space will be used.
Get:1 http://ubuntu.mirror.su.se/ubuntu focal-updates/main amd64 linux-oem-5.6-tools-common all 5.6.0-1008.8 [174 kB]
Fetched 174 kB in 0s (446 kB/s)
Selecting previously unselected package linux-oem-5.6-tools-common.
(Reading database ... 326483 files and directories currently installed.)
Preparing to unpack .../linux-oem-5.6-tools-common_5.6.0-1008.8_all.deb ...

Progress: [ 0%] [.............................................................................................................]
Unpacking linux-oem-5.6-tools-common (5.6.0-1008.8) ...........................................................................]

Setting up linux-oem-5.6-tools-common (5.6.0-1008.8) ...#####..................................................................]

Progress: [ 60%] [#################################################################............................................]
Processing triggers for man-db (2.9.1-1) ...#############################################################......................]
```

Then it finished, so I wanted to run perf finally.

```
$ perf stat -d so4/so-benchmark 1000000
WARNING: perf not found for kernel 5.4.0-28

  You may need to install the following packages for this specific kernel:
    linux-tools-5.4.0-28-generic
    linux-cloud-tools-5.4.0-28-generic

  You may also want to install one of the following packages to keep up to date:
    linux-tools-generic
    linux-cloud-tools-generic
```

Ok, so I discover that my kernel is not compatible with version 5.6. But apt suggests to install one of those, so I pick `linux-tools-generic` so it stays up to date.

```
$ sudo apt install linux-tools-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-tools-5.4.0-29 linux-tools-5.4.0-29-generic linux-tools-common
The following NEW packages will be installed:
  linux-tools-5.4.0-29 linux-tools-5.4.0-29-generic linux-tools-common linux-tools-generic
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 5 759 kB of archives.
After this operation, 25,7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ubuntu.mirror.su.se/ubuntu focal-updates/main amd64 linux-tools-common all 5.4.0-29.33 [186 kB]
Get:2 http://ubuntu.mirror.su.se/ubuntu focal-updates/main amd64 linux-tools-5.4.0-29 amd64 5.4.0-29.33 [5 568 kB]
Get:3 http://ubuntu.mirror.su.se/ubuntu focal-updates/main amd64 linux-tools-5.4.0-29-generic amd64 5.4.0-29.33 [1 988 B]
Get:4 http://ubuntu.mirror.su.se/ubuntu focal-updates/main amd64 linux-tools-generic amd64 5.4.0.29.34 [2 604 B]
Fetched 5 759 kB in 7s (878 kB/s)
Selecting previously unselected package linux-tools-common.
(Reading database ... 326549 files and directories currently installed.)
Preparing to unpack .../linux-tools-common_5.4.0-29.33_all.deb ...

Progress: [ 0%] [.............................................................................................................]
Unpacking linux-tools-common (5.4.0-29.33) ....................................................................................]
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.4.0-29.33_all.deb (--unpack):
 trying to overwrite '/usr/bin/acpidbg', which is also in package linux-oem-5.6-tools-common 5.6.0-1008.8
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package linux-tools-5.4.0-29.
Preparing to unpack .../linux-tools-5.4.0-29_5.4.0-29.33_amd64.deb ...

Unpacking linux-tools-5.4.0-29 (5.4.0-29.33) ..................................................................................]

Selecting previously unselected package linux-tools-5.4.0-29-generic...........................................................]
Preparing to unpack .../linux-tools-5.4.0-29-generic_5.4.0-29.33_amd64.deb ...

Unpacking linux-tools-5.4.0-29-generic (5.4.0-29.33) ..........................................................................]

Selecting previously unselected package linux-tools-generic....................................................................]
Preparing to unpack .../linux-tools-generic_5.4.0.29.34_amd64.deb ...

Unpacking linux-tools-generic (5.4.0.29.34) ...#########.......................................................................]

Errors were encountered while processing:#####################.................................................................]
 /var/cache/apt/archives/linux-tools-common_5.4.0-29.33_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

So, unfortunately I have now my package dependencies broken..

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-tools-common (not installed)
ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30
Uname: Linux 5.4.0-28-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: fabio 4406 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Sun May 10 15:09:06 2020
InstallationDate: Installed on 2020-04-03 (36 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
MachineType: Dell Inc. XPS 15 7590
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-28-generic root=UUID=4f215b94-50a2-44af-b8c6-faf7cea8214a ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-28-generic N/A
 linux-backports-modules-5.4.0-28-generic N/A
 linux-firmware 1.187
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/06/2020
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.6.0
dmi.board.name: 0VYV0G
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.6.0:bd02/06/2020:svnDellInc.:pnXPS157590:pvr:rvnDellInc.:rn0VYV0G:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: XPS
dmi.product.name: XPS 15 7590
dmi.product.sku: 0905
dmi.sys.vendor: Dell Inc.
mtime.conffile..etc.apport.crashdb.conf: 2020-05-04T10:26:46.106768

Revision history for this message
fcole90 (fcole90) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
fcole90 (fcole90) wrote :

Temporary fix:
```
sudo dpkg --remove linux-oem-5.6-tools-common
sudo apt-get install --fix-broken
```

Revision history for this message
apsaras (xbuntuone) wrote :
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.