Bug 496020 - Package “libkpim5gapi5-data” failed to upgrade.
Summary: Package “libkpim5gapi5-data” failed to upgrade.
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
: 496056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-09 19:16 UTC by gerardhg
Modified: 2024-11-14 10:23 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gerardhg 2024-11-09 19:16:37 UTC
(libkpim5gapi5-data)  
Failed to update 1 package
Package failed to install: Error while installing package: trying to overwrite /usr/share/locale/ar/LC_MESSAGES/libkgapi_qt.qm, which is also in package libkpimgapi5-data 23.08.5-0zneon 24.04 noble release build1

SUMMARY
Discover errors out with the above message when trying to update libkpim5gapi5-data.

STEPS TO REPRODUCE
1. Update libkpim5gapi5-data
2. 
3. 

OBSERVED RESULT
Update errors out and is not updated

EXPECTED RESULT
An updated version to be installed.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.2
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.8.0-48-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: LENOVO
System Version: ThinkCentre M92p

ADDITIONAL INFORMATION
There are two other people on KDE Discuss with the same problem.
Comment 1 gerardhg 2024-11-10 14:45:43 UTC
Guss77 on KDE Discuss  posted a solution for this problem.  It worked on my machine and for three others who had the same issues.

apt --fix-broken -o Dpkg::Options::="--force-overwrite" install

apt full-upgrade -o Dpkg::Options::="--force-overwrite"

apt autoremove --purge
Comment 2 gerardhg 2024-11-10 14:55:58 UTC
   The issue has been fixed. apt --fix-broken -o
   Dpkg::Options::="--force-overwrite" install apt full-upgrade -o
   Dpkg::Options::="--force-overwrite" apt autoremove --purge

   "In the upgrade from 5 to 6 some files moved between packages and
   that’s not a good situation because when installing parts of the
   system (which happens during any upgrade - some parts are updated
   while other parts haven’t yet), you will get into a situation where
   you need to install a new package that has a file from a different
   older package that hasn’t updated yet - and as you can see, Apt hates
   that.

   During Plasma 6 development, the Neon developers suggested setting Apt
   to automatically allow overwriting files from another package, but at
   this point it should have been stable and so it doesn’t make sense to
   allow this globally."



   ---------------- 09.11.2024, 14:52, "Antonio Rojas"
   <bugzilla_noreply@kde.org>:
   To: gerardhg@yandex.com (gerardhg@yandex.com);
   Subject: [neon] [Bug 496020] Package “libkpim5gapi5-data” failed to
   upgrade.;

     https://bugs.kde.org/show_bug.cgi?id=496020

     Antonio Rojas < arojas@archlinux.org[1]> changed:

     What |Removed |Added
     ----------------------------------------------------------------------------
     CC| | jr@jriddell.org[2],
     | | neon-bugs@kde.org[3]
     Component|discover |Packages User Edition
     Product|Discover |neon
     Assignee| plasma-bugs@kde.org[4] | neon-bugs@kde.org[3]
     Version|6.2.3 |unspecified

     --
     You are receiving this mail because:
     You reported the bug.

   


   1. mailto:arojas@archlinux.org
   2. mailto:jr@jriddell.org
   3. mailto:neon-bugs@kde.org
   4. mailto:plasma-bugs@kde.org
Comment 3 Antonio Rojas 2024-11-10 19:19:57 UTC
*** Bug 496056 has been marked as a duplicate of this bug. ***
Comment 4 dofficialgman 2024-11-11 05:08:54 UTC
Allowing overwrites is not a solution, there should never be conflicts. The package data needs to be modified to remove the conflicting files. Reopening.
Comment 5 dofficialgman 2024-11-11 05:13:09 UTC
To provide context, the conflicting packages libkpim5gapi5-data and libkpimgapi5-data provide the same contents. It appears to be a poorly handled package rename where libkpim5gapi5-data was supposed to have libkpimgapi5-data in the "Replaces" and "Breaks" section but whoever handled the creation of this package forgot to do so.
Comment 6 Carlos De Maine 2024-11-12 10:48:54 UTC
(In reply to dofficialgman from comment #5)
> To provide context, the conflicting packages libkpim5gapi5-data and
> libkpimgapi5-data provide the same contents. It appears to be a poorly
> handled package rename where libkpim5gapi5-data was supposed to have
> libkpimgapi5-data in the "Replaces" and "Breaks" section but whoever handled
> the creation of this package forgot to do so.

correct.  the packaging has been broken since the upgrade to noble when ubuntu/upstream changed it's packaging.
<sarcasm>
usually i'm quite a resilient fellow bu i am starting to tire of poorly worded bug reports.
the neon packaging repos are available for all to see.  patches are welcome even when poorly presented.
</sarcasm>
Comment 7 dofficialgman 2024-11-12 13:00:40 UTC
(In reply to Carlos De Maine from comment #6)
> correct.  the packaging has been broken since the upgrade to noble when
> ubuntu/upstream changed it's packaging.

No. This is a neon specific problem. Neither libkpimgapi5-data nor libkpim5gapi5-data exist in upstream Ubuntu.
Comment 8 Carlos De Maine 2024-11-13 02:05:44 UTC
just for your reference, the libkpimgapi*5 packages were by libkpim5gapi*5 packages in mantic and my attempts to rectify this created the above mess.  

"libkpimgapi5-data nor libkpim5gapi5-data exist in upstream Ubuntu"
finally you provide facts instead of poorly worded opinions, which allow the problem to be solved 

https://invent.kde.org/neon/neon-packaging/libkgapi5/-/commit/d0fd1227d74c92ed4c3c751b9719814d03aa49f6
https://invent.kde.org/neon/neon-packaging/libkgapi5/-/commit/38e0eacfc79588c6e7beb60eeb0b0b79b9bf1fc3
https://invent.kde.org/neon/neon-packaging/libkgapi5/-/commit/35de6877ee6c70bf610c17c6bb7b52b80eee57ee
https://invent.kde.org/neon/neon-packaging/libkgapi5/-/commit/cc30094f6a567f43797c3d5cea054429bf05a41d
for future bug reports please refrain from negative/contrary/poorly worded criticism's or indeed use your debian packaging knowledge and fix the problem yourself and for everybody else with a patch .  they are always welcomed .  
https://invent.kde.org/neon/
Comment 9 dofficialgman 2024-11-13 03:41:54 UTC
Huh... Not sure what part of my previous comments were poorly worded opinion since debian guidelines say that a renamed package should have a breaks and replaces for the old name https://wiki.debian.org/RenamingPackages#Transition_package_method
Comment 10 Carlos De Maine 2024-11-14 10:23:45 UTC
(In reply to dofficialgman from comment #9)
> Huh... Not sure what part of my previous comments were poorly worded opinion
> since debian guidelines say that a renamed package should have a breaks and
> replaces for the old name
> https://wiki.debian.org/RenamingPackages#Transition_package_method

""It appears to be a poorly handled""