Bug 496235

Summary: Package "libkf5calendarcore5" failed to install
Product: [KDE Neon] neon Reporter: dofficialgman
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: carlosd.kde, jr, neon-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dofficialgman 2024-11-13 21:20:24 UTC
SUMMARY
The system failed to update due to a new dependency that got automatically installed but cannot be configured due to conflicts. This is because of the `ktnef` package (from ubuntu) that depends on libkf5calendarcore5abi2 which conflicts with the new neon package libkf5calendarcore5 due to shared files

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libkf5calendarcore5
The following packages will be REMOVED:
  libkpimgapi5-data
The following NEW packages will be installed:
  libkf5calendarcore5
0 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
141 not fully installed or removed.
Need to get 0 B/253 kB of archives.
After this operation, 840 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 596633 files and directories currently installed.)
Removing libkpimgapi5-data (23.08.5-0zneon+24.04+noble+release+build20) ...
(Reading database ... 596630 files and directories currently installed.)
Preparing to unpack .../libkf5calendarcore5_5%3a5.116.0-xzneon+24.04+noble+release+build3_amd64.deb ...
Unpacking libkf5calendarcore5:amd64 (5:5.116.0-xzneon+24.04+noble+release+build3) ...
dpkg: error processing archive /var/cache/apt/archives/libkf5calendarcore5_5%3a5.116.0-xzneon+24.04+noble+release+build3_amd64.deb (--unpack):
 trying to overwrite '/usr/share/qlogging-categories5/kcalendarcore.categories', which is also in package libkf5calendarcore5abi2:amd64 5:5.115.0-0ubuntu3
Errors were encountered while processing:
 /var/cache/apt/archives/libkf5calendarcore5_5%3a5.116.0-xzneon+24.04+noble+release+build3_amd64.deb

STEPS TO REPRODUCE
1. update system

OBSERVED RESULT
Update errors with the above

EXPECTED RESULT
Update does not error

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.2
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
libkf5calendarcore5 is from neon repos and libkf5calendarcore5abi2 is from the ubuntu repos.
Comment 2 Jonathan Riddell 2024-11-14 11:00:49 UTC
I tested in a /user Docker installing ktnef then switched to /testing and installed kontact and it failed

Preparing to unpack .../097-kmail_4%3a24.08.3-0zneon+24.04+noble+release+build11_amd64.deb ...
Unpacking kmail (4:24.08.3-0zneon+24.04+noble+release+build11) ...
dpkg: error processing archive /tmp/apt-dpkg-install-N7dsOF/097-kmail_4%3a24.08.3-0zneon+24.04+noble+release+build11_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/ktnef', which is also in package ktnef 4:23.08.5-0ubuntu5.1

Fixing now...