Howto solve "unmet dependencies" on KDE Neon?

Hi, In my work workstation I’m still using kde neon 5.27.

I read that plasma 6.0.1 is out and I want to upgrade the system, but I can’t because I’ve got an unmet dependecies error.

After succesfully run pkcon refresh

# pkcon update
Obtenció de les actualitzacions        [=========================]         
Finalització                           [                         ] (0%)  Ha fallat l'ordre: The following packages have unmet dependencies:
  libkpimgapi5-data: Trenca: libkpimgapi-data (< 23.08.5) but 23.08.4-0xneon+22.04+jammy+release+build27 is to be installed

Any clue? Thank’s!

1 Like

I don’t understand the full error message (language-wise), but my guess is that you have some (probably obsolete or self-made) package installed that specifically depends on libkpimgapi-data version 23.08.4. If that is the case, you need to uninstall that package.
It could also be an old package that could be upgraded, but the package manager is configured to hold it at it’s current version.

You could try reinstalling the package

sudo pkcon install libkpimgapi5-data --allow-reinstall

Or try sudo apt update && sudo apt upgrade and see what you obtain.

Thank’s both @meven and @aguzinski

I’m out of the office now, but monday I will try your suggestions.

After run the previous commanda, the following packages has been installed:

 accounts-qml6-module-doc-0.7+p22.04+vrelease+git20240304.0310-0.all    Online Accounts QML6 - documentation
 kf6-kcalendarcore-6.0.0-0xneon+22.04+jammy+release+build3.amd64        calendar access framework
 kf6-kcodecs-6.0.0-0xneon+22.04+jammy+release+build3.amd64      collection of methods to manipulate strings
 kf6-kconfig-6.0.0-0xneon+22.04+jammy+release+build3.amd64      configuration settings framework for Qt
 kf6-kcontacts-6.0.0-0xneon+22.04+jammy+release+build5.amd64    data files for kcontacts
 kf6-kcoreaddons-6.0.0-0xneon+22.04+jammy+release+build3.amd64  KDE Frameworks 6 addons to QtCore - data files
 kf6-ki18n-6.0.0-0xneon+22.04+jammy+release+build3.amd64        Advanced internationalization framework.
 libaccounts-qt6-1-1.16.0nicofee20240222-0xneon+22.04+jammy+release+build14.amd64       Accounts database access Qt version - Qt6 shared library
 libkpimgapi5-data-23.08.5-0xneon+22.04+jammy+release+build11.all       Google API library for KDE -- data files
 libsignon-qt6-1-8.61nicofee20231222-0xneon+22.04+jammy+release+build10.amd64   Single Sign On framework - qt6 shared libraries
 qml6-module-qtquick-6.6.2-0xneon+22.04+jammy+release+build24.all       Dummy transitional
 qml6-module-sso-onlineaccounts-0.7+p22.04+vrelease+git20240304.0310-0.amd64    Expose the Online Accounts API to QML applications
 qt6-positioning-6.6.2-0xneon+22.04+jammy+release+build9.amd64  Qt 6 Positioning library
 qt6-serialport-6.6.2-0xneon+22.04+jammy+release+build12.amd64  Qt 6 serial port support library
 qt6-webchannel-6.6.2-0xneon+22.04+jammy+release+build11.amd64  Qt 6 WebChannel library
 qt6-webengine-6.6.2-0xneon+22.04+jammy+release+build27.amd64   Qt 6 WebEngine Core library
 sse3-support-6.amd64   prevent installation on processors without required instructions

libkpimgapi-data has been removed:
libkpimgapi-data-23.08.4-0xneon+22.04+jammy+release+build27.all Google API library for KDE -- data files

Finally, this has been updated:

 libkpimgapicore5-23.08.5-0xneon+22.04+jammy+release+build11.amd64      core library to integrate with Google service APIs
 libkpimgapidrive5-23.08.5-0xneon+22.04+jammy+release+build11.amd64     library to integrate with Google Drive service API
 libqt5core5a-5.15.12+p22.04+vrelease+git20240216.0020-0.amd64  Qt 5 core module
 libqt5dbus5-5.15.12+p22.04+vrelease+git20240216.0020-0.amd64   Qt 5 D-Bus module
 libqt5gui5-5.15.12+p22.04+vrelease+git20240216.0020-0.amd64    Qt 5 GUI module
 libqt5network5-5.15.12+p22.04+vrelease+git20240216.0020-0.amd64        Qt 5 network module
 qt6-base-6.6.2-0xneon+22.04+jammy+release+build88.amd64        Qt 6 core module
 qt6-declarative-6.6.2-0xneon+22.04+jammy+release+build24.amd64 Qt 6 QML module

But I cannot update my system …

Error greu: The following packages have unmet dependencies:
  breeze: Depèn: breeze-cursor-theme (= 4:5.27.10-0xneon+22.04+jammy+release+build44) but 4:6.0.0-0xneon+22.04+jammy+release+build49 is to be installed
  plasma-runners-addons: Depèn: kdeplasma-addons-data (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build33 is to be installed
  packagekit-tools: Depèn: packagekit (= 1.2.8-0xneon+22.04+jammy+release+build15) but 1.2.8-0xneon+22.04+jammy+release+build14 is to be installed
  plasma-widgets-addons: Depèn: kdeplasma-addons-data (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build33 is to be installed
  plasma-wallpapers-addons: Depèn: kdeplasma-addons-data (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build33 is to be installed
  kio-extras: Depèn: kio-extras-data (= 4:23.08.4-0xneon+22.04+jammy+release+build34) but 4:24.02.0-0xneon+22.04+jammy+release+build39 is to be installed
  kde-style-oxygen-qt5: Depèn: liboxygenstyle5-5 (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build36 is to be installed
                        Depèn: liboxygenstyleconfig5-5 (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build36 is to be installed
  powerdevil: Depèn: powerdevil-data (= 4:5.27.10-0xneon+22.04+jammy+release+build36) but 4:6.0.0-0xneon+22.04+jammy+release+build42 is to be installed
  libkaccounts2: Depèn: kaccounts-integration but it is not going to be installed
  kwin-x11: Depèn: kwin-common (= 4:6.0.0-0xneon+22.04+jammy+release+build67)
  plasma-discover-backend-snap: Depèn: plasma-discover (= 6.0.0-0xneon+22.04+jammy+release+build46) but 5.27.10-0xneon+22.04+jammy+release+build41 is to be installed
  plasma-dataengines-addons: Depèn: kdeplasma-addons-data (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build33 is to be installed
  libkimageannotator0: Depèn: libkimageannotator-common (= 0.5.3-1) but 0.7.0-0xneon1+22.04+jammy+release+build3 is to be installed
  qml-module-org-kde-purpose: Depèn: libkf5purpose-bin (= 5.115.0-1xneon+22.04+jammy+release+build48) but it is not going to be installed
  plasma-calendar-addons: Depèn: kdeplasma-addons-data (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build33 is to be installed
  liblayershellqtinterface6: Trenca: liblayershellqtinterface5 (< 6.0.0) but 5.27.10-0xneon+22.04+jammy+release+build32 is to be installed
  plasma-discover: Depèn: plasma-discover-common (= 5.27.10-0xneon+22.04+jammy+release+build41) but 6.0.0-0xneon+22.04+jammy+release+build46 is to be installed
  kwin-addons: Depèn: kdeplasma-addons-data (= 4:5.27.10-0xneon+22.04+jammy+release+build30) but 4:6.0.0-0xneon+22.04+jammy+release+build33 is to be installed
  plasma-desktop: Depèn: plasma-desktop-data (= 4:5.27.10-0xneon+22.04+jammy+release+build47)
  kde-cli-tools: Depèn: kde-cli-tools-data (= 4:5.27.10-0xneon+22.04+jammy+release+build34) but 4:6.0.0-0xneon+22.04+jammy+release+build37 is to be installed
  kwin-common: Depèn: kwin-data (= 4:5.27.10-0xneon+22.04+jammy+release+build51) but 4:6.0.0-0xneon+22.04+jammy+release+build67 is to be installed
               Depèn: libkwineffects14 (= 4:5.27.10-0xneon+22.04+jammy+release+build51) but 4:6.0.0-0xneon+22.04+jammy+release+build67 is to be installed

I’m sorry, but I don’t know how to proceed when I’m encoutering unmet dependecies problems.

Don’t be sorry, neon packaging and upgrade has let you down unfortunately, users are not supposed to be exposed to such problems. Fortunately the community is here to get people out of trouble.

Now you can try those steps:

That have worked for many users.

Oh, very kind, thank’s!

it just doesn’t work. A little summary…

sudo apt autoremove
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Se SUPRIMIRAN els paquets següents:
  accounts-qml6-module-doc fonts-mathjax kf6-kcalendarcore kf6-kcodecs kf6-kconfig kf6-kcontacts kf6-kcoreaddons kf6-ki18n libaccounts-qt6-1 libjs-mathjax libjs-requirejs libkf5pulseaudioqt3 libphonon4qt5-data libsignon-qt6-1
  libwmf0.2-7 linux-headers-5.15.0-87 linux-headers-5.15.0-87-generic linux-headers-5.15.0-88 linux-headers-5.15.0-88-generic linux-headers-5.15.0-89 linux-headers-5.15.0-89-generic linux-headers-5.15.0-91
  linux-headers-5.15.0-91-generic linux-headers-6.2.0-33-generic linux-headers-6.2.0-35-generic linux-headers-6.2.0-36-generic linux-headers-6.2.0-37-generic linux-hwe-6.2-headers-6.2.0-33 linux-hwe-6.2-headers-6.2.0-35
  linux-hwe-6.2-headers-6.2.0-36 linux-hwe-6.2-headers-6.2.0-37 linux-image-5.15.0-87-generic linux-image-5.15.0-88-generic linux-image-5.15.0-89-generic linux-image-5.15.0-91-generic linux-image-6.2.0-33-generic
  linux-image-6.2.0-35-generic linux-image-6.2.0-36-generic linux-image-6.2.0-37-generic linux-modules-5.15.0-87-generic linux-modules-5.15.0-88-generic linux-modules-5.15.0-89-generic linux-modules-5.15.0-91-generic
  linux-modules-6.2.0-33-generic linux-modules-6.2.0-35-generic linux-modules-6.2.0-36-generic linux-modules-6.2.0-37-generic linux-modules-extra-5.15.0-87-generic linux-modules-extra-5.15.0-88-generic
  linux-modules-extra-5.15.0-89-generic linux-modules-extra-5.15.0-91-generic linux-modules-extra-6.2.0-33-generic linux-modules-extra-6.2.0-35-generic linux-modules-extra-6.2.0-36-generic linux-modules-extra-6.2.0-37-generic
  qml6-module-qtquick qml6-module-sso-onlineaccounts qt6-positioning qt6-serialport qt6-webchannel qt6-webengine sse3-support

$ sudo pkcon install libdecor-0-0
Resolució                              [=========================]         Ha fallat l'ordre: The selected packages may already be installed.

$ sudo pkcon install libsdl2-2.0-0
 libsdl2-2.0-0-2.28.5+dfsg-2+22.04+jammy+release+build2.amd64   Simple DirectMedia Layer
Voleu aplicar els canvis? [N/y] y

$ sudo pkcon install plasma-desktop
Error greu: The following packages have unmet dependencies:
  kf6-kwallet: Depèn: libgpgmepp6 (>= 1.23.2) but 1.16.0-1.2ubuntu4.2 is to be installed
               Trenca: libkf5wallet-bin (< 5.115.0-1) but 5.106.0-0xneon+22.04+jammy+release+build28 is to be installed
  libappstream5: Depèn: libxmlb2 (>= 0.3.15) but 0.3.6-2build1 is to be installed
  libpoppler134: Depèn: libgpgmepp6 (>= 1.23.2) but 1.16.0-1.2ubuntu4.2 is to be installed

$ sudo pkcon install plasma-desktop-data
Error greu: The following packages have unmet dependencies:
  plasma-desktop: Depèn: plasma-desktop-data (= 4:5.27.10-0xneon+22.04+jammy+release+build47)

One last idea:

sudo pkcon install libdecor-0-0 libsdl2-2.0-0 plasma-desktop plasma-desktop-data --allow-reinstall

I’m getting this issue on both of my desktops PCs:

Fatal error: The following packages have unmet dependencies:
  kio-extras5: Depends: kio-extras5-data (= 4:24.02.0-0xneon+22.04+jammy+release+build3) but 4:24.02.0-0xneon+22.04+jammy+release+build4 is to be installed

Strangely enough, this isn’t happening on both of my laptops. I am already on Plasma 6. But even more strange, I can still update my desktops by using Discover. Is there an issue with Pkcon?

sudo pkcon remove kio-extras
sudo pkcon install libdecor-0-0 libsdl2-2.0-0 plasma-desktop plasma-desktop-data kio-extras --allow-reinstall

Is there an issue with Pkcon?

No, this is the dependency graph between packages.

Okay. So this won’t destroy my desktop? Because having no desktop would suck.

Okay. I just did this:

sudo pkcon remove kio-extras

Gave me this:

More than one package matches:
1. kio-extras-4:24.02.0-0xneon+22.04+jammy+release+build36.amd64 [auto:user_jammy-jammy-main]
2. kio-extras-4:24.02.0-0xneon+22.04+jammy+release+build36.amd64 [auto:user_jammy-jammy-main]
3. kio-extras-4:24.02.0-0xneon+22.04+jammy+release+build36.amd64 [auto:user_jammy-jammy-main]
4. kio-extras-4:24.02.0-0xneon+22.04+jammy+release+build36.amd64 [auto:user_jammy-jammy-main]
5. kio-extras-4:24.02.0-0xneon+22.04+jammy+release+build36.amd64 [auto:user_jammy-jammy-main]

I chose 1.

Then it spits out this:

Fatal error: The following packages have unmet dependencies:md64 [auto:user_jammy-jammy-main]
  neon-desktop: Depends: kinfocenter but it is not going to be installedser_jammy-jammy-main]
                Depends: kio-extras but it is not going to be installed
                Depends: powerdevil but it is not going to be installed
                Depends: sddm-theme-breeze
                Recommends: bluez-cups but it is not going to be installed
                Recommends: firefox but it is not going to be installed
                Recommends: fwupd-signed but it is not going to be installed
                Recommends: hplip but it is not going to be installed
                Recommends: kdeplasma-addons but it is not going to be installed
                Recommends: kscreen but it is not going to be installed
                Recommends: kwrite but it is not going to be installed
                Recommends: neon-adwaita but it is not going to be installed
                Recommends: plasma-browser-integration but it is not going to be installed
                Recommends: plasma-workspace-wayland
                Recommends: printer-driver-splix but it is not going to be installed
                Recommends: snapd but it is not going to be installed
  plasma-desktop: Depends: plasma-workspace (>= 4:6.0.0) but it is not going to be installed
                  Recommends: kde-style-oxygen-qt6 but it is not installable
                  Recommends: kinfocenter but it is not going to be installed
                  Recommends: kio-extras but it is not going to be installed
                  Recommends: kscreen but it is not going to be installed
                  Recommends: powerdevil but it is not going to be installed

You can try

sudo pkcon install libdecor-0-0 libsdl2-2.0-0 plasma-desktop plasma-desktop-data kio-extras --allow-reinstall

Without the remove.

Or

sudo apt update && sudo apt upgrade -y

Might get you different result

I tried this:

sudo pkcon install libdecor-0-0 libsdl2-2.0-0 plasma-desktop plasma-desktop-data kio-extras --allow-reinstall

Didn’t fix the issue.

And I ran:

Then it spat out this:

  Dependencies are not satisfied for kio-extras5:amd64 < 4:24.02.0-0xneon+22.04+jammy+release+build3 @ii umH Ib >
Keeping package kio-extras5:amd64
  Dependencies are not satisfied for kio-extras5:amd64 < 4:24.02.0-0xneon+22.04+jammy+release+build3 @ii umH Ib >
Package kio-extras5:amd64 kio-extras5:amd64 Depends on kio-extras5-data:amd64 < 4:24.02.0-0xneon+22.04+jammy+release+build3 -> 4:24.02.0-0xneon+22.04+jammy+release+build4 @ii umU > (= 4:24.02.0-0xneon+22.04+jammy+release+build3)
  Keeping Package kio-extras5-data:amd64 due to Depends
Calculating upgrade... Done
The following packages have been kept back:
  kf6-kfilemetadata kio-extras kio-extras5 kio-extras5-data krename libk3b8
  libk3b8-extracodecs libtag1v5 libtag1v5-vanilla

I’ll just say that I think I am glad majority of my apps are all Flatpak so that those are kept separate from the rest of the system.

Any way to solve this?

I’ve decided to keep the neon ppa disabled on systems affected. I even made a script to enable and disable it as I please:

#!/bin/bash
cd /etc/apt/sources.list.d/
echo "1. Enable Neon PPA"
echo "2. Disable Neon PPA"
echo ""
echo "Current state:"
cat neon.list
echo ""
read -p "Choose 1 or 2: " input
if [[ $input == "1" ]]; then
        sed -i 's/#//' neon.list
        clear
        echo "Neon PPA enabled."
        echo ""
        cat neon.list
elif [[ $input == "2" ]]; then
        sed -i 's/^/#/' neon.list
        clear
        echo "Neon PPA disabled."
        echo ""
        cat neon.list
else
        echo ""
        echo "Enter either 1 or 2"
fi

You never mentioned you were on kubuntu with neon packages!
That’s a very important thing to mention and that’s clearly not-recommended for anyone or rather at-your-own risk since it is not supported.
That’s why you end up with so many further issues.

Nope. I never installed Kubuntu. I installed KDE Neon. Anyway, I just want to get the regular Ubuntu updates for now until Neon gets its repo fixed.

So, my script disables the neon ppa so that I can run Pkcon update without having the dependency issue with the neon ppa.

But this effectively mix distro, which is technically possible but will assuredly break your system at times. At least make sure to use LTS ubuntu, as Neon is based on it.

Well most users have managed to update to Plasma6, so it is possible to update. But that would require on your system more fiddling with apt/pkcon. You can ask google for generic answer for debian/ubuntu. Like Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution) - Ask Ubuntu

I’m already on Plasma 6.

Yes. Tried apt-get -f install. Didn’t fix the issue. So, I am just going to wait until the Neon team fixes their repo. I have no major issues. So, I’m fine for now. I’m not worried. My install of KDE Neon uses the current Ubuntu base that the KDE Neon iso comes with. And I much rather receive Ubuntu base system package updates than nothing at all.