Bug 370032 - libkf5purpose-bin : Breaks: libkf5purpose5 (< 1.1+p16.04+git20160930.1710-0~ciBuild) but 1.1+p16.04+git20160823.1857-0 is installed
Summary: libkf5purpose-bin : Breaks: libkf5purpose5 (< 1.1+p16.04+git20160930.1710-0~c...
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:
Depends on:
Blocks:
 
Reported: 2016-10-05 10:15 UTC by Mike
Modified: 2016-10-10 09:57 UTC (History)
4 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 Mike 2016-10-05 10:15:15 UTC
Below is output of 'apt upgrade'

---
 ❯ sudo apt upgrade                                                                                         [06:04:40]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libkf5purpose-bin : Breaks: libkf5purpose5 (< 1.1+p16.04+git20160930.1710-0~ciBuild) but 1.1+p16.04+git20160823.1857-0 is installed
E: Unmet dependencies. Try using -f.

---

 ❯ sudo apt upgrade -f                                                                                      [06:04:42]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
 Done
Entering ResolveByKeep 10%
  Dependencies are not satisfied for libkwinxrenderutils9 [ amd64 ] < none -> 4:5.8.0+p16.04+git20161005.0343-0 > ( libs )
Keeping package libkwinxrenderutils9:amd64
  Dependencies are not satisfied for kwin-x11 [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( kde )
Keeping package kwin-x11:amd64
  Dependencies are not satisfied for kwin-x11 [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( kde )
Package kwin-x11:amd64 kwin-x11:amd64 Depends on kwin-common [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( kde ) (= 4:5.7.4+p16.04+git20160830.1227-0)
  Keeping Package kwin-common:amd64 due to Depends
  Dependencies are not satisfied for libkwinglutils9 [ amd64 ] < none -> 4:5.8.0+p16.04+git20161005.0343-0 > ( libs )
Keeping package libkwinglutils9:amd64
  Dependencies are not satisfied for kwin-common [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( kde )
Keeping package kwin-common:amd64
  Dependencies are not satisfied for kwin-common [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( kde )
Package kwin-common:amd64 kwin-common:amd64 Depends on kwin-data [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( kde ) (= 4:5.7.4+p16.04+git20160830.1227-0)
  Keeping Package kwin-data:amd64 due to Depends
  Dependencies are not satisfied for libkwineffects9 [ amd64 ] < none -> 4:5.8.0+p16.04+git20161005.0343-0 > ( libs )
Keeping package libkwineffects9:amd64
  Dependencies are not satisfied for libkwin4-effect-builtins1 [ amd64 ] < 4:5.7.4+p16.04+git20160830.1227-0 -> 4:5.8.0+p16.04+git20161005.0343-0 > ( libs )
Keeping package libkwin4-effect-builtins1:amd64
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libappstream3 libkf5purposewidgets5 liblegacytaskmanager5 libphp-adodb libprotobuf9v5 php-letodms-core
  php-letodms-lucene qml-modules-org-kde-purpose
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  kwin-common kwin-data kwin-x11 libkwin4-effect-builtins1
The following packages will be upgraded:
  libkf5purpose5
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
416 not fully installed or removed.
Need to get 0 B/35.8 kB of archives.
After this operation, 585 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 374272 files and directories currently installed.)
Preparing to unpack .../libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb ...
Unpacking libkf5purpose5:amd64 (1.1+p16.04+git20160930.1710-0) over (1.1+p16.04+git20160823.1857-0) ...
dpkg: error processing archive /var/cache/apt/archives/libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libKF5PurposeWidgets.so.5', which is also in package libkf5purposewidgets5:amd64 1.1+p16.04+git20160823.1857-0
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> elapsed time 1m8s                                                                                                  



Reproducible: Always

Steps to Reproduce:
1.  apt upgrade
2.  apt upgrade -f 
3.  apt install -f

Actual Results:  
Unpacking libkf5purpose5:amd64 (1.1+p16.04+git20160930.1710-0) over (1.1+p16.04+git20160823.1857-0) ...
dpkg: error processing archive /var/cache/apt/archives/libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libKF5PurposeWidgets.so.5', which is also in package libkf5purposewidgets5:amd64 1.1+p16.04+git20160823.1857-0
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Expected Results:  
upgrade completes with no errors

pidgin  (chat client) has no icons.  "broken image" icon displayed instead
Comment 1 Aleix Pol 2016-10-05 10:55:54 UTC
This is a distribution's packaging bug. Please ask your distro.
Comment 2 Mike 2016-10-05 12:48:04 UTC
Distro is "Neon"

 ❯ cat /etc/os-release                                          [08:47:43]
NAME="KDE neon"
VERSION="5.8"
ID=neon
ID_LIKE="ubuntu debian"
PRETTY_NAME="KDE neon User Edition 5.8"
VERSION_ID="16.04"
HOME_URL="http://neon.kde.org/"
SUPPORT_URL="http://neon.kde.org/"
BUG_REPORT_URL="http://bugs.kde.org/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
Comment 3 Roman Gilg 2016-10-06 15:13:44 UTC
I also encountered this problem. In your log see the lines:

"The following packages were automatically installed and are no longer required:
  libappstream3 libkf5purposewidgets5 liblegacytaskmanager5 libphp-adodb libprotobuf9v5 php-letodms-core
  php-letodms-lucene qml-modules-org-kde-purpose"

Just do "sudo apt autoremove" to delete the offending libkf5purposewidgets5 package.

Setting status to RESOLVED. But if it still doesn't work for you for some reason, write a comment.
Comment 4 Mike 2016-10-06 15:51:59 UTC
Thanks for looking into this, thus far.

I'm unable to remove/install/upgrade (at all) because of the unresolved issue:
***
The following packages have unmet dependencies:
 libkf5purpose-bin : Breaks: libkf5purpose5 (< 1.1+p16.04+git20160930.1710-0~ciBuild) but 1.1+p16.04+git20160823.1857-0 is to be installed
***

Removing the "offending package" does not complete:
---
 ❯ sudo apt remove -f libkf5purposewidgets5                     [11:34:57]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libkf5purpose-bin : Breaks: libkf5purpose5 (< 1.1+p16.04+git20160930.1710-0~ciBuild) but 1.1+p16.04+git20160823.1857-0 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).



Below is the attempt to run auto-remove
---
 ❯ sudo apt autoremove                                          [11:33:12]
[sudo] password for mike: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libkf5purpose-bin : Breaks: libkf5purpose5 (< 1.1+p16.04+git20160930.1710-0~ciBuild) but 1.1+p16.04+git20160823.1857-0 is installed
E: Unmet dependencies. Try using -f.


 ❯ sudo apt-get -f install                                      [11:33:25]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
  libappstream3 libkf5purposewidgets5 liblegacytaskmanager5 libphp-adodb
  libprotobuf9v5 php-letodms-core php-letodms-lucene
  qml-modules-org-kde-purpose
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libkf5purpose5
Suggested packages:
  kde-telepathy-send-file
The following packages will be upgraded:
  libkf5purpose5
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
419 not fully installed or removed.
Need to get 0 B/35.8 kB of archives.
After this operation, 585 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 374287 files and directories currently installed.)
Preparing to unpack .../libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb ...
Unpacking libkf5purpose5:amd64 (1.1+p16.04+git20160930.1710-0) over (1.1+p16.04+git20160823.1857-0) ...
dpkg: error processing archive /var/cache/apt/archives/libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libKF5PurposeWidgets.so.5', which is also in package libkf5purposewidgets5:amd64 1.1+p16.04+git20160823.1857-0
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libkf5purpose5_1.1+p16.04+git20160930.1710-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Comment 5 Roman Gilg 2016-10-06 16:28:42 UTC
Ok, sorry. Forgot the most important part. Remove the offending package without dependency check:
sudo dpkg -r --force-depends libkf5purposewidgets5
Comment 6 Roman Gilg 2016-10-07 07:14:49 UTC
Since it didn't work the first time, can you add a comment if it now worked for you?
Comment 7 Mike 2016-10-10 09:57:58 UTC
thank you again for assisting... I was out of town for the weekend and unable to test.  Removing the problematic package (forcefully) resolved the issue and I've completed further upgrades.

As it is still running while I write this, we're way past resolving the package.  I hope this helped resolve any (if at all) package issues for Neon upgrades to 5.8.

thanks again