Public bug reported:

I already have the linux-tools for a low-latency kernel installed, and
now want to add these also for my other generic Kernel.

But because these packages have not conflict marked, but contain the
same file, this leads into major dependency problems:


$ apt install linux-tools-generic 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-tools-5.15.0-37 linux-tools-5.15.0-37-generic
The following NEW packages will be installed:
  linux-tools-5.15.0-37 linux-tools-5.15.0-37-generic linux-tools-generic
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 7.938 kB of archives.
After this operation, 26,9 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-tools-5.15.0-37 amd64 5.15.0-37.39 [7.933 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-tools-5.15.0-37-generic amd64 5.15.0-37.39 [1.786 B]
Get:3 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-tools-generic amd64 5.15.0.37.39 [2.272 B]
Fetched 7.938 kB in 2s (3.885 kB/s)             
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
[master d42762a] saving uncommitted changes in /etc prior to apt run
 Author: Henning Sprang <henning.spr...@gmail.com>
 12 files changed, 94 insertions(+), 18 deletions(-)
 delete mode 120000 
systemd/system/multi-user.target.wants/snap-blender-2090.mount
 create mode 120000 
systemd/system/multi-user.target.wants/snap-blender-2474.mount
 delete mode 120000 systemd/system/multi-user.target.wants/snap-core-12834.mount
 create mode 120000 systemd/system/multi-user.target.wants/snap-core-13308.mount
 rename systemd/system/{snap-blender-2090.mount => snap-blender-2474.mount} 
(58%)
 rename systemd/system/{snap-core-12834.mount => snap-core-13308.mount} (59%)
Selecting previously unselected package linux-tools-5.15.0-37.
(Reading database ... 662356 files and directories currently installed.)
Preparing to unpack .../linux-tools-5.15.0-37_5.15.0-37.39_amd64.deb ...
Unpacking linux-tools-5.15.0-37 (5.15.0-37.39) ...
dpkg: error processing archive 
/var/cache/apt/archives/linux-tools-5.15.0-37_5.15.0-37.39_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libcpupower.so.5.15.0-37', which is also in 
package linux-lowlatency-tools-5.15.0-37 5.15.0-37.39
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package linux-tools-5.15.0-37-generic.
Preparing to unpack .../linux-tools-5.15.0-37-generic_5.15.0-37.39_amd64.deb ...
Unpacking linux-tools-5.15.0-37-generic (5.15.0-37.39) ...
Selecting previously unselected package linux-tools-generic.
Preparing to unpack .../linux-tools-generic_5.15.0.37.39_amd64.deb ...
Unpacking linux-tools-generic (5.15.0.37.39) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-tools-5.15.0-37_5.15.0-37.39_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
henning@tp-x1e:~/data/produktion/greenbone/dev/minikube-eval$ sudo apt update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease                       
                                                                          
Hit:3 https://ppa.launchpadcontent.net/mozillacorp/mozillavpn/ubuntu jammy 
InRelease                                                                      
Get:5 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]      
          
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]   
                                              
Hit:4 https://packages.cloud.google.com/apt kubernetes-xenial InRelease         
          
Get:8 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 
Metadata [73,4 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 
Metadata [91,9 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 
DEP-11 Metadata [1.196 B]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 
[159 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages 
[55,7 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en 
[39,2 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 
Metadata [11,4 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 
Packages [148 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted 
Translation-en [22,4 kB]
Fetched 922 kB in 2s (604 kB/s)                                    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

This leads to a situation that cannot be reolved by apt install -f
anymore, but required me to first remove all linux-tools* packages to be
able to continue installing anything.

probably, the fiule in questions should be either in a more generic
package, or it should have different names vor lowlatency/generic
packages.

Or at least the packages should be marked to not be installed at the
same time

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-tools-5.15.0-37 (not installed)
ProcVersionSignature: Ubuntu 5.15.0-37.39-generic 5.15.35
Uname: Linux 5.15.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC1:  henning    6528 F.... pulseaudio
 /dev/snd/controlC0:  henning    6528 F.... pulseaudio
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Jun  8 17:34:19 2022
InstallationDate: Installed on 2020-04-12 (786 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: LENOVO 20QV00CEGE
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-37-generic 
root=/dev/mapper/vgubuntu-root ro intel_iommu=off
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-37-generic N/A
 linux-backports-modules-5.15.0-37-generic  N/A
 linux-firmware                             20220329.git681281e4-0ubuntu3.2
SourcePackage: linux
UpgradeStatus: Upgraded to jammy on 2022-04-28 (40 days ago)
dmi.bios.date: 12/06/2021
dmi.bios.release: 1.42
dmi.bios.vendor: LENOVO
dmi.bios.version: N2OET55W (1.42 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20QV00CEGE
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T08861 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.23
dmi.modalias: 
dmi:bvnLENOVO:bvrN2OET55W(1.42):bd12/06/2021:br1.42:efr1.23:svnLENOVO:pn20QV00CEGE:pvrThinkPadX1Extreme2nd:rvnLENOVO:rn20QV00CEGE:rvrSDK0T08861WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20QV_BU_Think_FM_ThinkPadX1Extreme2nd:
dmi.product.family: ThinkPad X1 Extreme 2nd
dmi.product.name: 20QV00CEGE
dmi.product.sku: LENOVO_MT_20QV_BU_Think_FM_ThinkPad X1 Extreme 2nd
dmi.product.version: ThinkPad X1 Extreme 2nd
dmi.sys.vendor: LENOVO

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977985

Title:
  cannot install linux-tools packages for various kernel variants at the
  same time

Status in linux package in Ubuntu:
  New

Bug description:
  I already have the linux-tools for a low-latency kernel installed, and
  now want to add these also for my other generic Kernel.

  But because these packages have not conflict marked, but contain the
  same file, this leads into major dependency problems:

  
  $ apt install linux-tools-generic 
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  The following additional packages will be installed:
    linux-tools-5.15.0-37 linux-tools-5.15.0-37-generic
  The following NEW packages will be installed:
    linux-tools-5.15.0-37 linux-tools-5.15.0-37-generic linux-tools-generic
  0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  Need to get 7.938 kB of archives.
  After this operation, 26,9 MB of additional disk space will be used.
  Do you want to continue? [Y/n] 
  Get:1 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-tools-5.15.0-37 amd64 5.15.0-37.39 [7.933 kB]
  Get:2 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-tools-5.15.0-37-generic amd64 5.15.0-37.39 [1.786 B]
  Get:3 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-tools-generic amd64 5.15.0.37.39 [2.272 B]
  Fetched 7.938 kB in 2s (3.885 kB/s)             
  Auto packing the repository in background for optimum performance.
  See "git help gc" for manual housekeeping.
  [master d42762a] saving uncommitted changes in /etc prior to apt run
   Author: Henning Sprang <henning.spr...@gmail.com>
   12 files changed, 94 insertions(+), 18 deletions(-)
   delete mode 120000 
systemd/system/multi-user.target.wants/snap-blender-2090.mount
   create mode 120000 
systemd/system/multi-user.target.wants/snap-blender-2474.mount
   delete mode 120000 
systemd/system/multi-user.target.wants/snap-core-12834.mount
   create mode 120000 
systemd/system/multi-user.target.wants/snap-core-13308.mount
   rename systemd/system/{snap-blender-2090.mount => snap-blender-2474.mount} 
(58%)
   rename systemd/system/{snap-core-12834.mount => snap-core-13308.mount} (59%)
  Selecting previously unselected package linux-tools-5.15.0-37.
  (Reading database ... 662356 files and directories currently installed.)
  Preparing to unpack .../linux-tools-5.15.0-37_5.15.0-37.39_amd64.deb ...
  Unpacking linux-tools-5.15.0-37 (5.15.0-37.39) ...
  dpkg: error processing archive 
/var/cache/apt/archives/linux-tools-5.15.0-37_5.15.0-37.39_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/libcpupower.so.5.15.0-37', which is also in 
package linux-lowlatency-tools-5.15.0-37 5.15.0-37.39
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Selecting previously unselected package linux-tools-5.15.0-37-generic.
  Preparing to unpack .../linux-tools-5.15.0-37-generic_5.15.0-37.39_amd64.deb 
...
  Unpacking linux-tools-5.15.0-37-generic (5.15.0-37.39) ...
  Selecting previously unselected package linux-tools-generic.
  Preparing to unpack .../linux-tools-generic_5.15.0.37.39_amd64.deb ...
  Unpacking linux-tools-generic (5.15.0.37.39) ...
  Errors were encountered while processing:
   /var/cache/apt/archives/linux-tools-5.15.0-37_5.15.0-37.39_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  henning@tp-x1e:~/data/produktion/greenbone/dev/minikube-eval$ sudo apt update
  Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
  Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease                     
                                                                            
  Hit:3 https://ppa.launchpadcontent.net/mozillacorp/mozillavpn/ubuntu jammy 
InRelease                                                                      
  Get:5 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]    
            
  Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
  Get:7 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB] 
                                                
  Hit:4 https://packages.cloud.google.com/apt kubernetes-xenial InRelease       
            
  Get:8 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 
Metadata [73,4 kB]
  Get:9 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 
Metadata [91,9 kB]
  Get:10 http://de.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 
DEP-11 Metadata [1.196 B]
  Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 
[159 kB]
  Get:12 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages 
[55,7 kB]
  Get:13 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en 
[39,2 kB]
  Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 
Metadata [11,4 kB]
  Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 
Packages [148 kB]
  Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted 
Translation-en [22,4 kB]
  Fetched 922 kB in 2s (604 kB/s)                                    
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  All packages are up to date.

  This leads to a situation that cannot be reolved by apt install -f
  anymore, but required me to first remove all linux-tools* packages to
  be able to continue installing anything.

  probably, the fiule in questions should be either in a more generic
  package, or it should have different names vor lowlatency/generic
  packages.

  Or at least the packages should be marked to not be installed at the
  same time

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: linux-tools-5.15.0-37 (not installed)
  ProcVersionSignature: Ubuntu 5.15.0-37.39-generic 5.15.35
  Uname: Linux 5.15.0-37-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  henning    6528 F.... pulseaudio
   /dev/snd/controlC0:  henning    6528 F.... pulseaudio
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Jun  8 17:34:19 2022
  InstallationDate: Installed on 2020-04-12 (786 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  MachineType: LENOVO 20QV00CEGE
  ProcFB: 0 i915drmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-37-generic 
root=/dev/mapper/vgubuntu-root ro intel_iommu=off
  RelatedPackageVersions:
   linux-restricted-modules-5.15.0-37-generic N/A
   linux-backports-modules-5.15.0-37-generic  N/A
   linux-firmware                             20220329.git681281e4-0ubuntu3.2
  SourcePackage: linux
  UpgradeStatus: Upgraded to jammy on 2022-04-28 (40 days ago)
  dmi.bios.date: 12/06/2021
  dmi.bios.release: 1.42
  dmi.bios.vendor: LENOVO
  dmi.bios.version: N2OET55W (1.42 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 20QV00CEGE
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0T08861 WIN
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: None
  dmi.ec.firmware.release: 1.23
  dmi.modalias: 
dmi:bvnLENOVO:bvrN2OET55W(1.42):bd12/06/2021:br1.42:efr1.23:svnLENOVO:pn20QV00CEGE:pvrThinkPadX1Extreme2nd:rvnLENOVO:rn20QV00CEGE:rvrSDK0T08861WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20QV_BU_Think_FM_ThinkPadX1Extreme2nd:
  dmi.product.family: ThinkPad X1 Extreme 2nd
  dmi.product.name: 20QV00CEGE
  dmi.product.sku: LENOVO_MT_20QV_BU_Think_FM_ThinkPad X1 Extreme 2nd
  dmi.product.version: ThinkPad X1 Extreme 2nd
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1977985/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to