Today after running the sudo apt update && sudo apt full-upgrade command, I ran into some trouble with unmet dependencies. I let it go for awhile, then just recently came back to it. The entire session is copied below. What went wrong? I am using the Neon dev edition with Kubuntu as the core--is there some incompatibility here?
steve@steve-desktop:~$ sudo apt update && sudo apt full-upgrade
[sudo] password for steve:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://dl.google.com/linux/earth/deb stable InRelease
Hit:3 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Hit:6 http://dl.google.com/linux/earth/deb stable Release
Hit:7 http://pe.archive.ubuntu.com/ubuntu xenial InRelease
Hit:8 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease
Get:9 http://pe.archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
Get:12 http://archive.neon.kde.org/stable xenial InRelease [8.878 B]
Get:13 http://pe.archive.ubuntu.com/ubuntu xenial-backports InRelease [92,2 kB]
Get:14 http://archive.neon.kde.org/stable xenial/main amd64 Packages [867 kB]
Get:15 http://archive.neon.kde.org/stable xenial/main i386 Packages [99,6 kB]
Get:16 http://archive.neon.kde.org/stable xenial/main all Packages [99,8 kB]
Fetched 1.357 kB in 3s (397 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
38 packages can be upgraded. Run 'apt list --upgradable' to see them.
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:
libkf5messagecomposer5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
libkf5messagecore5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
libkf5messagelist5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
libkf5templateparser5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
E: Unmet dependencies. Try using -f.
steve@steve-desktop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
digikam-data ffmpegthumbs libkexiv2-11v5 libkf5kaddressbookimportexport5
libkf5kdgantt2-5 libkf5sane5 liblensfun-data liblensfun0 libokularcore7
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
kf5-messagelib-data libkf5messageviewer5
The following packages will be upgraded:
kf5-messagelib-data libkf5messageviewer5
2 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
140 not fully installed or removed.
Need to get 0 B/4.322 kB of archives.
After this operation, 56,3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 261522 files and directories currently installed.)
Preparing to unpack .../kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb ...
Unpacking kf5-messagelib-data (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
dpkg: error processing archive /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb (--unpack):
trying to overwrite '/usr/share/messageviewer/defaultthemes/5.2/kmail_default.desktop', which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
Preparing to unpack .../libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb ...
Unpacking libkf5messageviewer5:amd64 (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
dpkg: error processing archive /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/plugins/messageviewer/messageviewer_defaultgrantleeheaderstyleplugin.so' , which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Errors were encountered while processing:
/var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb
/var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
steve@steve-desktop:~$ sudo apt update && sudo apt full-upgrade
[sudo] password for steve:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://dl.google.com/linux/earth/deb stable InRelease
Hit:3 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Hit:6 http://dl.google.com/linux/earth/deb stable Release
Hit:7 http://pe.archive.ubuntu.com/ubuntu xenial InRelease
Hit:8 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease
Get:9 http://pe.archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
Get:12 http://archive.neon.kde.org/stable xenial InRelease [8.878 B]
Get:13 http://pe.archive.ubuntu.com/ubuntu xenial-backports InRelease [92,2 kB]
Get:14 http://archive.neon.kde.org/stable xenial/main amd64 Packages [867 kB]
Get:15 http://archive.neon.kde.org/stable xenial/main i386 Packages [99,6 kB]
Get:16 http://archive.neon.kde.org/stable xenial/main all Packages [99,8 kB]
Fetched 1.357 kB in 3s (397 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
38 packages can be upgraded. Run 'apt list --upgradable' to see them.
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:
libkf5messagecomposer5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
libkf5messagecore5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
libkf5messagelist5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
libkf5templateparser5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
E: Unmet dependencies. Try using -f.
steve@steve-desktop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
digikam-data ffmpegthumbs libkexiv2-11v5 libkf5kaddressbookimportexport5
libkf5kdgantt2-5 libkf5sane5 liblensfun-data liblensfun0 libokularcore7
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
kf5-messagelib-data libkf5messageviewer5
The following packages will be upgraded:
kf5-messagelib-data libkf5messageviewer5
2 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
140 not fully installed or removed.
Need to get 0 B/4.322 kB of archives.
After this operation, 56,3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 261522 files and directories currently installed.)
Preparing to unpack .../kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb ...
Unpacking kf5-messagelib-data (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
dpkg: error processing archive /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb (--unpack):
trying to overwrite '/usr/share/messageviewer/defaultthemes/5.2/kmail_default.desktop', which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
Preparing to unpack .../libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb ...
Unpacking libkf5messageviewer5:amd64 (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
dpkg: error processing archive /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/plugins/messageviewer/messageviewer_defaultgrantleeheaderstyleplugin.so' , which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Errors were encountered while processing:
/var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb
/var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Comment