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’:
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.
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.
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).
Yes, I am slow to respond…err… type out a legible reply
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.
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.
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.
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
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.
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) ...
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 -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.