Error during system update (2024-11-04)

Hi Community,

Unfortunately, today’s system update was canceled with an error. What can I do to fix the conflict of “dpkg” so that the system update runs through without errors?

# LANG=C; apt update && apt full-upgrade
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease                                                                                
Hit:3 https://download.virtualbox.org/virtualbox/debian jammy InRelease                                                               
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease                                                                        
Hit:5 http://archive.ubuntu.com/ubuntu noble-updates InRelease                                                                        
Hit:6 https://updates.signal.org/desktop/apt xenial InRelease                                                                         
Hit:7 https://repo.librewolf.net librewolf InRelease                                                                                  
Hit:8 https://packages.element.io/debian default InRelease                                                      
Hit:9 https://repository.mullvad.net/deb/stable jammy InRelease                           
Hit:10 https://packages.mozilla.org/apt mozilla InRelease           
Get:11 http://archive.neon.kde.org/user noble InRelease [193 kB]
Fetched 193 kB in 1s (222 kB/s)     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libkpim5libkleo5:amd64 < 4:23.08.5-0ubuntu3 @ii mK Ib >
Broken libkpim5libkleo5:amd64 Depends on libkpim5libkleo-data:amd64 < 4:23.08.5-0ubuntu3 -> 4:24.08.2-0zneon+24.04+noble+release+build10 @ii umU > (= 4:23.08.5-0ubuntu3)
  Considering libkpim5libkleo-data:amd64 2 as a solution to libkpim5libkleo5:amd64 6
  Added libkpim5libkleo-data:amd64 to the remove list
  Fixing libkpim5libkleo5:amd64 via keep of libkpim5libkleo-data:amd64
 Try to Re-Instate (0) libkpim5libkleo-data:amd64
Done
Entering ResolveByKeep
Calculating upgrade... Done
The following packages have been kept back:
  libkpim5libkleo-data mbox-importer
The following packages will be upgraded:
  kpim6-libkleo
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 0 B/870 kB of archives.
After this operation, 4.096 B disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 301827 files and directories currently installed.)
Preparing to unpack .../kpim6-libkleo_4%3a24.08.2-0zneon+24.04+noble+release+build10_amd64.deb ...
Unpacking kpim6-libkleo:amd64 (4:24.08.2-0zneon+24.04+noble+release+build10) over (4:24.08.2-0zneon+24.04+noble+release+build9) ...
dpkg: error processing archive /var/cache/apt/archives/kpim6-libkleo_4%3a24.08.2-0zneon+24.04+noble+release+build10_amd64.deb (--unpack):
 trying to overwrite '/etc/xdg/libkleopatrarc', which is also in package libkpim5libkleo-data 4:23.08.5-0ubuntu3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/kpim6-libkleo_4%3a24.08.2-0zneon+24.04+noble+release+build10_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Greetings
Michael

I’d try removing something, then reinstalling after the upgrade…

like mbox-importer.

EDIT: See these references:
https://bugs.kde.org/show_bug.cgi?id=495354
https://www.reddit.com/r/kdeneon/comments/1gbbt5d/broken_kdepim_packages/

I have poked the dev team.


It looks like you have a Plasma 5 related package ( libkpim5libkleo-data) left over somehow, which provides a file also in a new and different package (kpim6-libkleo).

The error gives you the info you need to fix this, as you need the full path to the new deb that has been downloaded into in your apt cache.

sudo dpkg -i --force-overwrite /var/cache/apt/archives/kpim6-libkleo_4%3a24.08.2-0zneon+24.04+noble+release+build10_amd64.deb

You probably want to try updating again after this:

However, not sure if this solves everything, as you also have the old plasma 5 mbox-importer package installed, with its replacement being kpim6-mbox-importer , so you may need to look at uninstalling mbox-importer if updating doesn’t offer to remove this and install kpim6-mbox-importer .

Just installing kpim6-mbox-importer might cause the old one to be removed, as it is set to conflict/replace the old one.

Hi ben2talk,

Thanks for the tip. I have now rebooted the system again and restarted the system update (apt autoremove && apt update && apt full-upgrade). Now it went through without errors. Only the message that mbox-importer has been held back.

The following packages have been kept back:
  mbox-importer
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

1 Like

Hi claydoh,

uninstalling the mbox-importer package and then installing kpim6-mbox-importer has helped. Thank you!