Bug 495354 - Unable to uninstall libkpim5 packages
Summary: Unable to uninstall libkpim5 packages
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-25 18:01 UTC by mattias.lundahl
Modified: 2024-11-10 00:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mattias.lundahl 2024-10-25 18:01:15 UTC
SUMMARY
I am running Neon User edition since a few years back. When I first installed it, I had Plasma 5 and I have since kept up to date and am now on Plasma 6.2.2. It seems some PIM packages from the Plasma 5 generation have not been deleted when updating to Plasma 6, and for a few of them, I can neither uninstall them nor install the updates that Discover reports are available.

When I try to uninstall the libkpim5* packages via the Installed section in Discover, nothing happens and no error message is shown. I have also tried uninstalling them via synaptic, but this gives an error for the three specific packages libkpim5akonadimime-data, libkpim5libkleo-data and libkpim5mailtransport-data.

I have also tried to use the terminal to either uninstall or update the packages, with results shown below.

I previously reported an issue in bug 495197 and was advised to uninstall the packages, but as described here I can neither uninstall nor update the three packages mentioned above.

STEPS TO REPRODUCE
1. Try to uninstall or update the aforementioned packages
2. Error messages in both cases

OBSERVED RESULT

When I try to use sudo apt autoremove, I get the following:

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:
 libkpim5akonadimime5 : Depends: libkpim5akonadimime-data (= 4:23.08.5-0ubuntu3) but it is not installed
 libkpim5libkleo5 : Depends: libkpim5libkleo-data (= 4:23.08.5-0ubuntu3) but it is not installed
 libkpim5mailtransport5 : Depends: libkpim5mailtransport-data (= 23.08.5-0ubuntu3) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

When I try to run sudo apt --fix-broken install I get

Reading package lists... Done
Building dependency tree... Done
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:
  accounts-qml-module-doc kde-config-mailtransport kdepim-runtime kdevplatform514-libs kf5-messagelib-data kio-gdrive-5 kio-ldap
  kmailtransport-akonadi kopete-data ktexteditor-data ktexteditor-katepart kwrite libappstreamqt-3 libboost-dev libboost1.83-dev
  libclblas-dev libclblas2t64 libdbusmenu-glib4 libdbusmenu-gtk3-4 libflac++10 libgadu3t64 libgrantlee-templates5 libicu70
  libk3b7-extracodecs libk3b8-extracodecs libkaccounts2 libkasten4controllers0 libkasten4core0 libkasten4gui0
  libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkchart5-2 libkdecorations2private10
  libkf5akonadisearch-bin libkf5akonadisearch-plugins libkf5auth5 libkf5bluezqt-data libkf5bluezqt6 libkf5calendarcore5abi2
  libkf5calendarutils-bin libkf5cddb5 libkf5emoticons-bin libkf5emoticons-data libkf5emoticons5 libkf5filemetadata-bin
  libkf5filemetadata-data libkf5filemetadata3 libkf5grantleetheme-plugins libkf5idletime5 libkf5itemmodels5 libkf5js5 libkf5kcmutils5
  libkf5kdelibs4support-data libkf5kdelibs4support5 libkf5kdelibs4support5-bin libkf5khtml-bin libkf5khtml-data libkf5khtml5
  libkf5mailcommon-plugins libkf5networkmanagerqt6 libkf5notifyconfig-data libkf5notifyconfig5 libkf5plasma5 libkf5prison5
  libkf5purpose-bin libkf5sane-data libkf5sane6 libkf5textaddonswidgets1 libkf5textautocorrectioncore1 libkf5texteditor-bin
  libkf5texteditor5 libkf5textedittexttospeech1 libkf5textemoticonswidgets1 libkf5wallet-bin libkopete1 libkpim5akonadi-data
  libkpim5akonadiagentbase5 libkpim5akonadicore5 libkpim5akonadimime-bin libkpim5akonadimime-data libkpim5akonadimime5
  libkpim5akonadinotes-data libkpim5akonadinotes5 libkpim5akonadiprivate5 libkpim5akonadisearchdebug5 libkpim5akonadisearchpim5
  libkpim5akonadiwidgets5 libkpim5calendarutils-data libkpim5calendarutils5 libkpim5grantleetheme-data libkpim5grantleetheme5
  libkpim5gravatar-data libkpim5gravatar5 libkpim5identitymanagement-data libkpim5identitymanagement5
  libkpim5identitymanagementwidgets5 libkpim5imap-data libkpim5imap5 libkpim5kontactinterface-data libkpim5kontactinterface5
  libkpim5ldap-data libkpim5ldap5 libkpim5libkdepim-data libkpim5libkdepim5 libkpim5libkleo-data libkpim5libkleo5
  libkpim5mailimporter-data libkpim5mailimporter5 libkpim5mailimporterakonadi5 libkpim5mailtransport-data libkpim5mailtransport5
  libkpim5mbox-data libkpim5mbox5 libkpim5messagecore5t64 libkpim5mime-data libkpim5mime5 libkpim5mimetreeparser5t64
  libkpim5pimcommon5 libkpim5templateparser5t64 libkpim5textedit-data libkpim5textedit5 libkpim5webengineviewer5t64
  libkpim6grantleetheme-plugins libkpimgapi5-data libkpimgapicore5 libkpimgapidrive5 libobjc-11-dev libokteta3core0 libokteta3gui0
  libotr5t64 libpcre3 libphonon4qt5-4t64 libpython3-all-dev libqalculate23 libqca-qt5-2 libqca-qt5-2-plugins libqgpgme15t64
  libqmobipocket5-2 libqt5keychain1 libqt5mqtt5 libqt5quickwidgets5 libqt5script5 libqt5webenginewidgets5 libqt6core6 libqt6gui6
  libsnapd-glib1 libsnapd-qt1 libsoup-2.4-1 libsoup2.4-common libvector-blf2 libxsimd-dev linux-headers-6.8.0-40
  linux-headers-6.8.0-40-generic linux-image-6.8.0-40-generic linux-modules-6.8.0-40-generic linux-modules-extra-6.8.0-40-generic
  linux-tools-6.8.0-40 linux-tools-6.8.0-40-generic mailcap ocl-icd-opencl-dev opencl-c-headers opencl-clhpp-headers phonon4qt5
  plasma-framework6 pulseaudio-module-gsettings python3-all python3-all-dev python3-beniget python3-gast python3-pythran qdbus-qt5
  qml-module-org-kde-bluezqt qml-module-org-kde-prison qml-module-qtquick-controls qml-module-sso-onlineaccounts
  qml-module-ubuntu-onlineaccounts qtchooser ubuntu-advantage-tools xtl-dev xul-ext-ubufox

Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libkpim5akonadimime-data libkpim5libkleo-data libkpim5mailtransport-data
The following NEW packages will be installed:
  libkpim5akonadimime-data libkpim5libkleo-data libkpim5mailtransport-data
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
8 not fully installed or removed.
Need to get 0 B/472 kB of archives.
After this operation, 3 533 kB of additional disk space will be used.
Do you want to continue? [Y/n]

If I choose to continue, I get

(Reading database ... 402907 files and directories currently installed.)
Preparing to unpack .../libkpim5akonadimime-data_4%3a23.08.5-0ubuntu3_all.deb ...
Unpacking libkpim5akonadimime-data (4:23.08.5-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/libkpim5akonadimime-data_4%3a23.08.5-0ubuntu3_all.deb (--unpack):
 trying to overwrite '/usr/share/akonadi/plugins/serializer/akonadi_serializer_mail.desktop', which is also in package kpim6-akonadi-mime 4:24.08.2-0zneon+24.04+noble+release+build7
Preparing to unpack .../libkpim5libkleo-data_4%3a23.08.5-0ubuntu3_all.deb ...
Unpacking libkpim5libkleo-data (4:23.08.5-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/libkpim5libkleo-data_4%3a23.08.5-0ubuntu3_all.deb (--unpack):
 trying to overwrite '/etc/xdg/libkleopatrarc', which is also in package kpim6-libkleo:amd64 4:24.08.2-0zneon+24.04+noble+release+build9
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libkpim5mailtransport-data_23.08.5-0ubuntu3_all.deb ...
Unpacking libkpim5mailtransport-data (23.08.5-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/libkpim5mailtransport-data_23.08.5-0ubuntu3_all.deb (--unpack):
 trying to overwrite '/usr/share/config.kcfg/mailtransport.kcfg', which is also in package kpim6-kmailtransport 24.08.2-0zneon+24.04+noble+release+build8
Errors were encountered while processing:
 /var/cache/apt/archives/libkpim5akonadimime-data_4%3a23.08.5-0ubuntu3_all.deb
 /var/cache/apt/archives/libkpim5libkleo-data_4%3a23.08.5-0ubuntu3_all.deb
 /var/cache/apt/archives/libkpim5mailtransport-data_23.08.5-0ubuntu3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


EXPECTED RESULT

I want to either uninstall the packages or update them so they are no longer showing as having available updates in Discover. I suppose apt should have some list of installed packages somewhere and that if the package names are removed from there, Discover might no longer report updates for those packages. The packages are probably not used any more in Plasma 6 and they probably also don't use a lot of disk space, so simply keeping whatever is currently installed and just removing the names of these packages from the list that Discover finds updates for should solve the issue that these updates are reported to exist but cannot be installed.

SOFTWARE/OS VERSIONS
Linux: 6.8.0
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Comment 1 mattias.lundahl 2024-10-28 06:21:34 UTC
It seems a few others are experiencing the same problem judging by this Reddit thread: https://www.reddit.com/r/kdeneon/comments/1gbbt5d/broken_kdepim_packages/
Comment 2 mashkal2000@gmail.com 2024-11-10 00:45:24 UTC
+1 on this issue.
```
> sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
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:
  libkpimgapi5-data libkpimgapicore5 libqt5webengine-data libqt5webengine5 libqt5webenginecore5 linux-headers-6.8.0-45 linux-tools-6.8.0-45
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libkpim5gapi5-data
The following NEW packages will be installed:
  libkpim5gapi5-data
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
86 not fully installed or removed.
Need to get 0 B/42.4 kB of archives.
After this operation, 596 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 403920 files and directories currently installed.)
Preparing to unpack .../libkpim5gapi5-data_23.08.5-0zneon+24.04+noble+release+build6_all.deb ...
Unpacking libkpim5gapi5-data (23.08.5-0zneon+24.04+noble+release+build6) ...
dpkg: error processing archive /var/cache/apt/archives/libkpim5gapi5-data_23.08.5-0zneon+24.04+noble+release+build6_all.deb (--unpack):
 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
Errors were encountered while processing:
 /var/cache/apt/archives/libkpim5gapi5-data_23.08.5-0zneon+24.04+noble+release+build6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```


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)