Bug 463209

Summary: Package kwin-data failed to install due to duplicated file in mentioned and kwin-common
Product: [KDE Neon] neon Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: Packages Unstable EditionAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, carlosd.kde, jr, neon-bugs-null, p.r.worrall, piotr.mierzwinski, sitter
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Piotr Mierzwinski 2022-12-18 21:20:57 UTC
SUMMARY
Yesterday (2022-12-17)  update failed with error as following:
<cut>
Package failed to install:
Error while installing package: trying to overwrite &apos;/usr/share/applications/kcm_kwindecoration.desktop, which is also in package kwin-common 4
</cut>

Seems kwin is broken because doesn't start and because of this no decorations of window.
Alt+Tab doesn't work. Win+Tab (switching activities) doesn't work.
Anyway use of Plasma is very difficult in this status.

pkcon reports:
<cut>
$ pkcon update
Fatal error: Error while installing package: trying to overwrite '/usr/share/applications/kcm_kwindecoration.desktop', which is also in package kwin-common 4
</cut>

The try of fixing packages ( apt --fix-broken install ) ends with following error:
<cut>
Preparing to unpack .../kwin-data_4%3a5.26.4+p22.04+tunstable+git20221218.0019-0_all.deb ...
Unpacking kwin-data (4:5.26.4+p22.04+tunstable+git20221218.0019-0) over (4:5.26.4+p22.04+tunstable+git20221214.0017-0) ...
dpkg: error processing archive /var/cache/apt/archives/kwin-data_4%3a5.26.4+p22.04+tunstable+git20221218.0019-0_all.deb (--unpack):
 trying to overwrite '/usr/share/applications/kcm_kwindecoration.desktop', which is also in package kwin-common 4:5.26.4+p22.04+tunstable+git20221214.0017-0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/kwin-data_4%3a5.26.4+p22.04+tunstable+git20221218.0019-0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
</cut>

STEPS TO REPRODUCE
1. Run Discover
2. Click "Update All"
3. 

OBSERVED RESULT
Package (I suppose kwin-data) failed to install as in description.

EXPECTED RESULT
Package, especially kwin should be installed without problem due to this makes that use of Plasma is very difficult

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Affects on X11 and Wayland
Comment 1 Piotr Mierzwinski 2022-12-18 21:46:53 UTC
Even cannot install alternative desktop environment, and suggested "'apt --fix-broken install" doesn't help.

$ sudo apt-get install xfce4
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:
 kwin-common : Depends: libkwineffects14 (= 4:5.26.4+p22.04+tunstable+git20221214.0017-0) but 4:5.26.4+p22.04+tunstable+git20221218.0019-0 is to be installed
 kwin-wayland : Depends: kwin-common (= 4:5.26.4+p22.04+tunstable+git20221218.0019-0) but 4:5.26.4+p22.04+tunstable+git20221214.0017-0 is to be installed
 kwin-x11 : Depends: kwin-common (= 4:5.26.4+p22.04+tunstable+git20221218.0019-0) but 4:5.26.4+p22.04+tunstable+git20221214.0017-0 is to be installed
 xfce4 : Depends: libxfce4ui-utils (>= 4.16) but it is not going to be installed
         Depends: thunar (>= 4.16) but it is not going to be installed
         Depends: xfce4-appfinder (>= 4.16.0) but it is not going to be installed
         Depends: xfce4-panel (>= 4.16.0) but it is not going to be installed
         Depends: xfce4-pulseaudio-plugin but it is not going to be installed
         Depends: xfce4-session (>= 4.16.0) but it is not going to be installed
         Depends: xfce4-settings (>= 4.16.0) but it is not going to be installed
         Depends: xfconf (>= 4.16.0) but it is not going to be installed
         Depends: xfdesktop4 (>= 4.16.0) but it is not going to be installed
         Depends: xfwm4 (>= 4.16.0) but it is not going to be installed
         Recommends: desktop-base (>= 5.0.4) but it is not going to be installed
         Recommends: tango-icon-theme (>= 0.8.90) but it is not going to be installed
         Recommends: thunar-volman (>= 4.16) but it is not going to be installed
         Recommends: xfce4-notifyd but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Comment 2 Piotr Mierzwinski 2022-12-19 00:42:56 UTC
Below please find my workaround/fix:

$ sudo dpkg --force-all -i kwin-data_4%3a5.26.4+p22.04+tunstable+git20221218.0019-0_all.deb kwin-common_4%3a5.26.4+p22.04+tunstable+git20221218.0019-0_amd64.deb

Please fix packages.
Comment 3 Patrick Silva 2022-12-19 12:25:58 UTC
Can confirm.
Comment 4 Carlos De Maine 2022-12-19 22:42:05 UTC
Apologies.  Should now be fixed and new packages generated.