Dependency issues after trying to install linux-tools-generic

So I tried to install ‘linux-intel-iotg-tools-common’ which failed to install citing the error:

Fatal error: Error while installing package: trying to overwrite ‘/usr/bin/acpidbg’, which is also in package linux-intel-iotg-tools-common 5.15.0-1062.68

Now I have a dependency issue that cannot be resolved via the suggested ‘apt --fix-broken install’. As a result, Discover constantly attempts to install ‘linux-tools-common’, which fails with the error:

dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-118.128_all.deb (–unpack):
trying to overwrite ‘/usr/bin/acpidbg’, which is also in package linux-intel-iotg-tools-common 5.15.0-1062.68
dpkg-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-118.128_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Does anyone have some insight as to how I would resolve this problem? I’m not interested in ‘linux-intel-iotg-tools-common’ anymore, I just want the dependency issue resolved.

Any assistance would be appreciated.

EDIT: Discover comes up with this error upon booting, selecting ‘Repair system’ results in ‘Repair failed’:

Discover error

As far as I can tell, the installation of a package appears to be blocked, but the package manager keeps trying to install it and failing - I don’t know how to stop the package manager from trying to install the package.

ubuntu/kubuntu/kde neon?

probably a similar bug to this one

I can reproduce it by first installing
linux-intel-iotg-tools-common
then trying to install
linux-tools-common
(Both of which seem to be for the original 5.15 kernel when Ubuntu Jammy was originally released, not the current one. You may want linux-tools-generic-hwe-22.04 if working with latest kernel )

I simply uninstalled linux-intel-iotg-tools-common :
sudo apt remove linux-intel-iotg-tools-common
Then linux-tools-common installed just fine, and the errors disappeared.

Claydoh, I was hoping you’d reply.

EDIT: I’m running KDE Neon.

I tried running

sudo apt remove linux-intel-iotg-tools-common

Which resulted in the error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-tools-5.15.0-118 : Depends: linux-tools-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Furthermore, this is exactly what I did to cause the problem in the first place.

Thanks Claydoh, I resolved the issue. After watching the errors under terminal I was able to run:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-tools-common_5.15.0-118.128_all.deb

Which resolved the problem. I’m no longer interested in installing linux-intel-iotg-tools-common so all is good.

Yes, I am slow to respond…err… type out a legible reply :smile:

try uninstalling this, maybe?

What happens when running apt -f install, or
apt --fix-broken install? Does that get you back to the original errors?

I am not yet sure how to cancel a pending or previously incomplete install action, which I assume would allow things to be removed.

You may need to use dpkg as in #5 from the bug report.
sudo dpkg --remove --force-remove-reinstreq linux-intel-iotg-5.15-tools-common which may be correct way to cancel the attempt for this package (I rtfm’d this to see what it does)

Oddly, I did not see this, but I also didn’t try to fix it or anything else, which may be why.

I didn’t suggest this, as I don’t know if there is any difference between the executable files being overwritten, ‘/usr/bin/acpidbg’ or if this might cause a problem. If it were a man page or similar thing, it would have been the first thing I’d have done, myself.

Glad you got it sorted!

Claydoh, I couldn’t uninstall or even force-remove both:

linux-intel-iotg-tools-common

or:

linux-tools-common

As apt kept claiming both packages weren’t installed, yet it kept trying to install the package:

linux-tools-common_5.15.0-118.128_all.deb

Over and over again, and failing due to dependency issues. Honestly, it was the only way around the issue that I could see after trying apt -f install, apt --fix-broken install and even sudo dpkg --remove --force-remove-reinstreq linux-intel-iotg-5.15-tools-common before your last reply.

None of the above commands worked as apt insisted the package simply wasn’t installed to begin with, even sudo apt autoremove resulted in an error stating the package wasn’t installed.

At the end of the day, the issue seems to be resolved. Both sudo pkcon update and sudo apt update now run through without error and after a reboot I no longer see the error as reported by Discover.

Thank you for assisting.

Ok, with the latest updates today this issue returned. Now when I run ‘sudo apt update’ the response is:

On KDE neon you should use pkcon update to install updates.
If you absolutely must use apt you do have to use dist-upgrade or full-upgrade in place of the upgrade command.

My question is: What command should I use, ‘dist-upgrade’ or ‘full-upgrade’? Is it safe to use either? And will using either resolve my issue?

Terminal output as follows:

sudo pkcon update
Getting updates                         [=========================]         
Finished                                [=========================]         
Loading cache                           [=========================]         
Testing changes                         [=========================]         
Finished                                [                         ] (0%)  
The following packages have to be updated:
 chrome-remote-desktop-128.0.6613.44.amd64      Chrome Remote Desktop Beta
 linux-intel-iotg-tools-common-5.15.0-1063.69.all       Linux kernel version specific tools for version 5.15.0
Proceed with changes? [N/y] y

                                        [=========================]         
Updating packages                       [=========================]         
Loading cache                           [=========================]         
Downloading packages                    [=========================]         
Running                                 [=========================]         
Installing packages                     [=========================]         
Finished                                [=========================]         
Fatal error: Error while installing package: trying to overwrite '/usr/bin/acpidbg', which is also in package linux-tools-common 5.15.0-119.129

Any assistance in resolving this issue would be appreciated.

That message only appears when using upgrade.

apt-get dist-upgrade and apt full-upgrade are essentially identical, and is what pkcon uses when it calls apt to update packages. These are perfectly safe and correct to use. It won’t fix this problem, though. BUT it will provide better error messaging, which in this case shows the specific package and its full path, which is needed. pkcon cuts off a good bit of this when it runs apt.

I don’t grok what you may have installed that wants this package so badly., or why you would need linux-intel-iotg-5.15-tools-common which is for a very specific and niche Intel IoT kernel. The fix, or one of them, is to do exactly what you did before, and force the duplicated file to overwrite the existing one. But this will happen every time there is a new version of this package until it is removed.

linux-tools-common 5.15.0-119.129 is an update to the one you had problems with before. I don’t know why you have these installed, or what might be pulling them in, but the Ubuntu bug report I posted is relevant.

I have no idea why you have intel-iotg kernel packages installed, let alone for the 5.15 kernel.

Let’s see which iotg packages you have:
apt search iotg | grep installed

Maybe purging the iotg package with dpkg helps?

sudo dpkg -P linux-intel-iotg-tools-common
sudo apt -f install 

(dpkg is the lower level tool apt uses to work with individual packages)

I also don’t understand what I have installed that wants this package so badly, as far as I can tell the package is only partially installed due to some form of lock on ‘/usr/bin/acpidbg’, and apt keeps trying to install the package over and over again.

I really don’t want to keep force installing the package, ideally I’d like to know if I need it and whether I can remove it without creating other dependency issues - Assuming it’s even possible for me to remove it due to the possibility mentioned above?

I guess I blindly made a mistake when I installed it. What I don’t understand is how you were able to remove the offending package so easily, while I cannot.

I’ll do that now and post the results.

I won’t do this until I post the results asked for above and hear back from you.

Ok, I tried the command as requested, and got the following result:

sudo apt search iotg | grep installed
[sudo] password for matt: 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

I tried running ‘sudo dpkg -P linux-intel-iotg-tools-common’, results as follows:

sudo dpkg -P linux-intel-iotg-tools-common
dpkg: warning: files list file for package 'linux-tools-5.15.0-118' missing; assuming package has no files currently installed
(Reading database ... 579291 files and directories currently installed.)
Removing linux-intel-iotg-tools-common (5.15.0-1062.68) ...

Probably there are other packages invovled which I did not have present on my system.

So, your package database says you don’t have any package with ‘iotg’ in the name installed, though you clearly do .

But:

It DID remove the package, so I am hoping that things are more fixed now.

apt policy linux-intel-iotg-tools-common or synaptic should confirm this.

$  apt policy  linux-intel-iotg-tools-common
linux-intel-iotg-tools-common:
  Installed: (none)
  Candidate: 5.15.0-1063.69
  Version table:
     5.15.0-1063.69 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1062.68 500
...

So, run sudo apt -f install to finish an y package installs that were interrupted, if any.

You might want to remove linux-tools-common if it is installed, it isn’t needed , and is for the 5.15 series kernel.

If you want the utilities found in this, but for the current kernel, install linux-tools-generic-hwe-22.04 which will pull in the appropriate packages for this.

sudo apt policy linux-intel-iotg-tools-common
[sudo] password for matt: 
linux-intel-iotg-tools-common:
  Installed: (none)
  Candidate: 5.15.0-1063.69
  Version table:
     5.15.0-1063.69 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1062.68 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1061.67 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1060.66 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1059.65 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1058.64 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1057.63 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1055.61 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1052.58 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1051.57 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1050.56 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1049.55 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1048.54 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1047.53 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1046.52 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1045.51 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1043.49 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1040.46 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1039.45 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1038.43 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1037.42 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1036.41 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1035.40 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1034.39 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1033.38 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1031.36 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1030.35 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1028.33 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     5.15.0-1004.6 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packagestype or paste code here
sudo apt -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
  acpi-support acpid kaccounts5-integration kio-gdrive-5 kwrite libaccounts-qt5-1 libkf5purpose5 libkpimgapi5-data libkpimgapicore5 libkpimgapidrive5 libsignon-qt5-1
  linux-headers-5.15.0-112 linux-headers-5.15.0-113 linux-headers-5.15.0-116 linux-headers-5.15.0-117 linux-headers-5.15.0-118 linux-hwe-6.5-headers-6.5.0-35
  linux-hwe-6.5-headers-6.5.0-41 linux-hwe-6.5-headers-6.5.0-44 linux-tools-5.15.0-118 nvidia-firmware-555-555.52.04 signon-kwallet-extension
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up chrome-remote-desktop (128.0.6613.44) ...
Restarting Chrome Remote Desktop hosts (sessions will be unaffected)...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...type or paste code here

That seemed to work.

I only tried installing linux-tools-common as I wanted to monitor CPU stats with greater detail. At risk of myself sounding stupid, can you post the command to remove linux-tools-common? I’m paranoid of mucking things up again.

1 Like

sudo apt remove linux-tools-common
or
pkcon remove linux-tools-common

And you can remove those ‘no longer needed’ packages using
sudo apt autoremove

Synaptic is a good GUI front-end to apt, and it can do all of these things, too, which you might find easier and more clear.

On a forum, the apt commands are easier to present than describing where to click in an application :smiley:

1 Like