Bug 484940 - libkcolorpicker-qt6-0 failed to install in updates
Summary: libkcolorpicker-qt6-0 failed to install in updates
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
: 484983 485026 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-04-02 18:28 UTC by simonmapson
Modified: 2024-04-09 10:33 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simonmapson 2024-04-02 18:28:41 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Discover reports a new version of libkcolorpicker-qt6-0 is available. When attempting to update it, it fails with the message: 
Package failed to install: Error while installing package: trying to overwrite '/usr/lib/x86_64-linux-gnu/libkColorPicker.so.0', which is also in package libkcolorpicker0

STEPS TO REPRODUCE
1. Open discover.
2. Click 'Update'.
3. Click 'Update All'

OBSERVED RESULT
Error message: Update Issue. There was an issue installing this update. Please try again later. 
Clicking on 'See Technical Details' shows:
Package failed to install: Error while installing package: trying to overwrite '/usr/lib/x86_64-linux-gnu/libkColorPicker.so.0', which is also in package libkcolorpicker0

EXPECTED RESULT
libkcolorpicker-qt6-0 is updated.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE neon 6.0
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Comment 1 Jonathan Riddell 2024-04-02 18:39:51 UTC
Ug sorry about that, libkcolorpicker0 comes from Ubuntu so we should add a breaks/replaces but the archives are busy building Qt 6.7 so that won't be published until that's done.  To work around run 

apt remove libkcolorpicker0
Comment 2 Valerio Galdo 2024-04-02 19:24:52 UTC
Sorry but the workaround doesn't work...
this is the  output:
libkimageannotator-qt6-0 : Depends: libkcolorpicker-qt6-0 (>= 0.3.1) but version 0.3.0-0+22.04+jammy+release+build1 is about to be installed
E: Unsatisfied dependencies. Try "apt --fix-broken install" without packages (or specify a workaround).
Comment 3 jblake 2024-04-02 21:25:42 UTC
Today (02.04.2024) I received a notice to install updates via Discover. After a restart to install, and a restart after updates applied, notification area stated 'offline update failed'. Having made several attempts to apply the failed update again, all failing, I used Konsole to 'sudo apt-get update && sudo apt-get full upgrade' which brought up the following error:

E: /var/cache/apt/archives/libkcolorpicker-qt6-0_0.3.1-0xneon+22.04+jammy+release+build2_amd64.deb: trying to overwrite ‘/usr/lib/x86_64-linux-gnu/libkColorPicker.so.0’, which is also in package libkcolorpicker0:amd64 0.1.6-2
Comment 4 lin.ackles@pm.me 2024-04-02 23:26:27 UTC
This fixed my issue:

dpkg --remove --force-remove-reinstreq libkcolorpicker0

and then:

sudo apt full-upgrade
Comment 5 Xavier Padullés 2024-04-03 07:29:22 UTC
(In reply to lin.ackles@pm.me from comment #4)
> This fixed my issue:
> 
> dpkg --remove --force-remove-reinstreq libkcolorpicker0
> 
> and then:
> 
> sudo apt full-upgrade

This didn't solved my case.
Same issue after the full-upgrade command
Comment 6 Valerio Galdo 2024-04-03 10:42:57 UTC
this worked for me:
sudo apt --fix-broken install
Comment 7 Tom F 2024-04-03 13:39:57 UTC
Same object is in two packages...

E: /var/cache/apt/archives/libkcolorpicker-qt6-0_0.3.1-0xneon+22.04+jammy+release+build2_amd64.deb: trying to overwrite '/usr/lib/x86_64-linux-gnu/libkColorPicker.so.0', which is also in package libkcolorpicker0:amd64 0.1.6-2
Comment 8 Jonathan Riddell 2024-04-03 14:22:49 UTC
Git commit d329fb071b4e9898019f151ecdc85730db186efe by Jonathan Riddell.
Committed on 03/04/2024 at 14:22.
Pushed by jriddell into branch 'Neon/release'.

conflict libkcolorpicker0

M  +7    -11   debian/control

https://invent.kde.org/neon/backports-jammy/kcolorpicker/-/commit/d329fb071b4e9898019f151ecdc85730db186efe
Comment 9 jblake 2024-04-04 18:56:58 UTC
Have resolved this by removing all klibcolorpicker packages via the terminal:

cd .. to usr/share/doc
cd .. libkcolorpicker-qt6-0

then deleted the 2 documents in the directory:

sudo rm changelog.Debian.gz copyright 

then

sudo rrm libkcolorpicker-qt6-0

then cd.. to

usr/lib/x86_64-linux-gnu

then

sudo rm libkColorPicker-Qt6.so.0.3.0

sudo rm libkColorPicker-Qt.so.0

sudo rm libkColorPicker-Qt6.so.0

sudo rm libkColorPicker.so.0

rebooted, checked for updates, and now all good.
Comment 10 jblake 2024-04-04 19:00:44 UTC
typo at rrm should just be rm.
Comment 11 Thomas-Luke Duffin 2024-04-04 23:01:54 UTC
(In reply to jblake from comment #9)
> Have resolved this by removing all klibcolorpicker packages via the terminal:
> 
> cd .. to usr/share/doc
> cd .. libkcolorpicker-qt6-0
> 
> then deleted the 2 documents in the directory:
> 
> sudo rm changelog.Debian.gz copyright 
> 
> then
> 
> sudo rrm libkcolorpicker-qt6-0
> 
> then cd.. to
> 
> usr/lib/x86_64-linux-gnu
> 
> then
> 
> sudo rm libkColorPicker-Qt6.so.0.3.0
> 
> sudo rm libkColorPicker-Qt.so.0
> 
> sudo rm libkColorPicker-Qt6.so.0
> 
> sudo rm libkColorPicker.so.0
> 
> rebooted, checked for updates, and now all good.

Didn't seem to fix it for me -- just returned after my next reboot :/

I had a couple more libkColorPicker entries in the /usr/lib/x86_64-linux-gnu folder compared to you but I deleted those too.

I think for now I'll just have to wait for this to get resolved or for another fix to come through
Comment 12 Nicolas Fella 2024-04-05 12:58:09 UTC
*** Bug 485026 has been marked as a duplicate of this bug. ***
Comment 13 Nicolas Fella 2024-04-05 12:58:30 UTC
*** Bug 484983 has been marked as a duplicate of this bug. ***
Comment 14 beverage 2024-04-08 19:12:56 UTC
This seems to prevent installing anything. Trying to run eg. apt install muon will throw an error about libkcolorpicker which should be 100% unrelated. I'm not trying to update the overall system, just add one package. The fix also doesn't seem to have trickled onto the update servers yet.
Comment 15 Tàfol 2024-04-09 10:33:58 UTC
Hello, thanks for your help. I have followed the instructions you give in your messages and I have managed to solve the same problem by doing several of the things that are said here.
First I have done:

    sudo apt remove libkcolorpicker0

but I got an error about unsatisfied dependencies. Then I have done:

    sudo dpkg --remove --force-remove-reinstreq libkcolorpicker0

and then:

    sudo apt full-upgrade

finally, with:

    sudo apt --fix-broken install

everything has been solved.