I want to use Perf, so I tried to install linux-tools-common with the command:
sudo apt install linux-tools-common
However I got this error message:
Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages were automatically installed and are no longer required: linux-headers-5.19.0-35-generic linux-hwe-5.19-headers-5.19.0-35 linux-image-5.19.0-35-generic linux-modules-5.19.0-35-generic linux-modules-extra-5.19.0-35-genericUse 'sudo apt autoremove' to remove them.The following NEW packages will be installed: linux-tools-common0 upgraded, 1 newly installed, 0 to remove and 168 not upgraded.3 not fully installed or removed.Need to get 0 B/277 kB of archives.After this operation, 833 kB of additional disk space will be used.(Reading database ... 463754 files and directories currently installed.)Preparing to unpack .../linux-tools-common_5.15.0-73.80_all.deb ...Unpacking linux-tools-common (5.15.0-73.80) ...dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-73.80_all.deb (--unpack): trying to overwrite '/usr/bin/acpidbg', which is also in package linux-intel-iotg-tools-common 5.15.0-1030.35dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/linux-tools-common_5.15.0-73.80_all.debE: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to solve the problem by following the advice in the error message:
sudo apt autoremove
Which let to the next error message:
Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: linux-tools-5.15.0-73 : Depends: linux-tools-common but it is not installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
After running: sudo apt --fix-broken install
, I get the same error message as before:
Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCorrecting dependencies... DoneThe following packages were automatically installed and are no longer required: linux-headers-5.19.0-35-generic linux-hwe-5.19-headers-5.19.0-35 linux-image-5.19.0-35-generic linux-modules-5.19.0-35-generic linux-modules-extra-5.19.0-35-genericUse 'sudo apt autoremove' to remove them.The following additional packages will be installed: linux-tools-commonThe following NEW packages will be installed: linux-tools-common0 upgraded, 1 newly installed, 0 to remove and 168 not upgraded.3 not fully installed or removed.Need to get 0 B/277 kB of archives.After this operation, 833 kB of additional disk space will be used.Do you want to continue? [Y/n] y(Reading database ... 463754 files and directories currently installed.)Preparing to unpack .../linux-tools-common_5.15.0-73.80_all.deb ...Unpacking linux-tools-common (5.15.0-73.80) ...dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-73.80_all.deb (--unpack): trying to overwrite '/usr/bin/acpidbg', which is also in package linux-intel-iotg-tools-common 5.15.0-1030.35dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/linux-tools-common_5.15.0-73.80_all.debE: Sub-process /usr/bin/dpkg returned an error code (1)
I am using Ubuntu 22.04.2 LTS on a 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz × 8 Processor.
EDIT:I tried to install: perf-tools-unstable, but still get the same error message:
You might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: linux-tools-5.15.0-73 : Depends: linux-tools-common but it is not going to be installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
SECOND EDIT:My repository configurations are:
$ apt-cache policy | grep http | awk '{print $2" "$3}' | sort -uhttp://de.archive.ubuntu.com/ubuntu jammy-backports/mainhttp://de.archive.ubuntu.com/ubuntu jammy-backports/universehttp://de.archive.ubuntu.com/ubuntu jammy/mainhttp://de.archive.ubuntu.com/ubuntu jammy/multiversehttp://de.archive.ubuntu.com/ubuntu jammy/restrictedhttp://de.archive.ubuntu.com/ubuntu jammy/universehttp://de.archive.ubuntu.com/ubuntu jammy-updates/mainhttp://de.archive.ubuntu.com/ubuntu jammy-updates/multiversehttp://de.archive.ubuntu.com/ubuntu jammy-updates/restrictedhttp://de.archive.ubuntu.com/ubuntu jammy-updates/universehttps://apt.syncthing.net syncthing/stablehttps://dl.google.com/linux/chrome/deb stable/mainhttps://download.docker.com/linux/ubuntu jammy/stablehttp://security.ubuntu.com/ubuntu jammy-security/mainhttp://security.ubuntu.com/ubuntu jammy-security/multiversehttp://security.ubuntu.com/ubuntu jammy-security/restrictedhttp://security.ubuntu.com/ubuntu jammy-security/universehttps://ppa.launchpadcontent.net/jonmagon/crow-translate/ubuntu jammy/mainhttps://ppa.launchpadcontent.net/linuxuprising/java/ubuntu jammy/mainhttps://repo.steampowered.com/steam stable/steam