Dependencies broken on KDE Neon

Running sudo pkcon update on my KDE Neon (5.27.8) always brings up dependency errors:

nsc@nsc-laptop:~$ sudo pkcon update
[sudo] Passwort für nsc: 
Aktualisierungen werden abgerufen       [=========================]         
Fertig                                  [=========================]         
Änderungen werden getestet             [=========================]         
Fertig                                  [=========================]         
Schwerwiegender Fehler: The following packages have unmet dependencies:
  libokular5core11: Depends on: libkf5wallet5 but it is not going to be installed
  neon-desktop: Depends on: breeze but it is not going to be installed
                Depends on: kde-cli-tools but it is not going to be installed
                Depends on: kinfocenter but it is not going to be installed
                Depends on: kio but it is not going to be installed
                Depends on: kwin-wayland but it is not going to be installed
                Depends on: kwin-x11 but it is not going to be installed
                Depends on: sddm-theme-breeze but it is not going to be installed
                Recommends: dolphin but it is not going to be installed
                Recommends: dolphin-plugins but it is not going to be installed
                Recommends: frameworkintegration but it is not going to be installed
                Recommends: kde-config-plymouth but it is not going to be installed
                Recommends: kdeconnect but it is not going to be installed
                Recommends: kio-gdrive but it is not going to be installed
                Recommends: konsole but it is not going to be installed
                Recommends: kscreen but it is not going to be installed
                Recommends: ksshaskpass but it is not going to be installed
                Recommends: kwin-addons but it is not going to be installed
                Recommends: kwrite but it is not going to be installed
                Recommends: plasma-discover but it is not going to be installed
                Recommends: plasma-nm but it is not going to be installed
                Recommends: plasma-systemmonitor but it is not going to be installed
                Recommends: plasma-welcome but it is not going to be installed
                Recommends: plasma-widgets-addons but it is not going to be installed
                Recommends: plasma-workspace-wayland but it is not going to be installed
  okular-backends: Depends on: libokular5core11 (= 4:23.08.0-0xneon+22.04+jammy+release+build30) but 4:23.08.1-0xneon+22.04+jammy+release+build32 is to be installed
  okular: Depends on: libkf5wallet5 but it is not going to be installed
  plasma-desktop: Depends on: breeze (>= 4:5.14) but it is not going to be installed
                  Depends on: kde-cli-tools (>= 4:5.14) but it is not going to be installed
                  Depends on: kio but it is not going to be installed
                  Depends on: plasma-integration (>= 5.14) but it is not going to be installed
                  Depends on: plasma-workspace (>= 4:5.14) but it is not going to be installed
                  Depends on: libkf5newstuffcore5 but it is not going to be installed
                  Recommends: khelpcenter but it is not going to be installed
                  Recommends: kinfocenter (>= 4:5.14) but it is not going to be installed
                  Recommends: kscreen (>= 4:5.14) but it is not going to be installed
                  Recommends: ksshaskpass (>= 4:5.14) but it is not going to be installed
                  Recommends: kwin-x11 (>= 4:5.14) but it is not going to be installed or
                             kwin
                  Recommends: plasma-discover (>= 5.14) but it is not going to be installed

Also, trying to install anything based on kdepim-runtime fails:

nsc@nsc-laptop:~$ sudo pkcon install kdepim-runtime
[sudo] Passwort für nsc: 
Auflösen                               [=========================]         
Änderungen werden getestet             [=========================]         
Fertig                                  [=========================]         
Schwerwiegender Fehler: The following packages have unmet dependencies:
  libkf5akonadicalendar5: Hängt ab von: libgpgmepp6 (>= 1.22.0) but 1.21.0-0xneon+22.04+jammy+release+build4 is to be installed
                          Depends on: libkf5libkleo5 but it is not going to be installed
                          Depends on: libkf5messagecomposer5 but it is not going to be installed
                          Depends on: libkf5messagecore5 but it is not going to be installed
                          Depends on: libqgpgme15 (>= 1.22.0) but 1.21.0-0xneon+22.04+jammy+release+build4 is to be installed

I also reported this issue here a while ago, but it led to no real solution, so I decided to ask it here on discuss. Maybe someone has an idea of what is going wrong here. I suspect that some repositories are not configured properly, but I have no clue which ones and if this is even the cause of this problem.

I have these repositories listed in KDE Discover:

Is this still an issue? I’m only asking because the error said that installation cannot continue because there are dependency issue with libgpgmepp6 version 1.22.0 needed, but only 1.21 is available from the Neon user edition release repository - but I can see that the current release version of libgpgmepp6 is now 1.22.0 in the Neon user edition repositories.

Can you try to run apt update and then try to installation again?

That’s why I was suspecting a repository issue, because when I run apt update and try it again, the same issue appears again

(This is the more detailed error message when I use apt instead of pkcon:

nsc@nsc-laptop:~$ sudo apt-get install kdepim-runtime
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libkf5akonadicalendar5:amd64 < none -> 4:23.08.1-0xneon+22.04+jammy+release+build38 @un puN Ib >
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libkf5akonadicalendar-data:amd64 < none | 4:23.08.1-0xneon+22.04+jammy+release+build38 @rc uH > (= 4:23.08.1-0xneon+22.04+jammy+release+build38)
  Considering libkf5akonadicalendar-data:amd64 0 as a solution to libkf5akonadicalendar5:amd64 0
  Re-Instated libkf5akonadicalendar-data:amd64
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 | 1.16.0-1.2ubuntu4.1 @ii H > (>= 1.22.0)
  Considering libgpgmepp6:amd64 31 as a solution to libkf5akonadicalendar5:amd64 0
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libkf5calendarutils5:amd64 < none | 4:23.08.1-0xneon+22.04+jammy+release+build29 @rc uH >
  Considering libkf5calendarutils5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Re-Instated libkf5calendarutils5:amd64
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libkf5libkleo5:amd64 < none | 4:23.08.1-0xneon+22.04+jammy+release+build23 @un uH >
  Considering libkf5libkleo5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Re-Instated libkf5libkleo-data:amd64
    Reinst Failed early because of libgpgme11:amd64
  Considering libkf5libkleo5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5libkleo5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5libkleo5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5libkleo5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libkf5messagecomposer5:amd64 < none | 4:23.08.1-0xneon+22.04+jammy+release+build44 @un uH >
  Considering libkf5messagecomposer5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Re-Instated kf5-messagelib-data:amd64
    Reinst Failed early because of libgpgmepp6:amd64
  Considering libkf5messagecomposer5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecomposer5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecomposer5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecomposer5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecomposer5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libkf5messagecore5:amd64 < none | 4:23.08.1-0xneon+22.04+jammy+release+build44 @un uH >
  Considering libkf5messagecore5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
    Reinst Failed early because of libgpgmepp6:amd64
  Considering libkf5messagecore5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecore5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecore5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecore5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
  Considering libkf5messagecore5:amd64 1 as a solution to libkf5akonadicalendar5:amd64 0
Broken libkf5akonadicalendar5:amd64 Hängt ab von on libqgpgme15:amd64 < none | 1.22.0-0xneon+22.04+jammy+release+build5 @un uH > (>= 1.22.0)
  Considering libqgpgme15:amd64 0 as a solution to libkf5akonadicalendar5:amd64 0
    Reinst Failed early because of libgpgmepp6:amd64
Done
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libkf5akonadicalendar5 : Hängt ab von: libgpgmepp6 (>= 1.22.0) aber 1.21.0-0xneon+22.04+jammy+release+build4 soll installiert werden
                          Hängt ab von: libkf5libkleo5 soll aber nicht installiert werden
                          Hängt ab von: libkf5messagecomposer5 soll aber nicht installiert werden
                          Hängt ab von: libkf5messagecore5 soll aber nicht installiert werden
                          Hängt ab von: libqgpgme15 (>= 1.22.0) soll aber nicht installiert werden
                          Empfiehlt: libkf5akonadisearch-bin soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

What happens if you run apt install libgpgmepp6 ?

The output is too long for Discuss, so I uploaded it to CryptPad

It basically ends with this:

ie folgenden Pakete haben unerfüllte Abhängigkeiten:
 neon-desktop : Hängt ab von: breeze soll aber nicht installiert werden
                Hängt ab von: kde-cli-tools soll aber nicht installiert werden
                Hängt ab von: kinfocenter soll aber nicht installiert werden
                Hängt ab von: kio soll aber nicht installiert werden
                Hängt ab von: kwin-wayland soll aber nicht installiert werden
                Hängt ab von: kwin-x11 soll aber nicht installiert werden
                Hängt ab von: sddm-theme-breeze soll aber nicht installiert werden
                Empfiehlt: dolphin soll aber nicht installiert werden
                Empfiehlt: dolphin-plugins soll aber nicht installiert werden
                Empfiehlt: frameworkintegration soll aber nicht installiert werden
                Empfiehlt: kde-config-plymouth soll aber nicht installiert werden
                Empfiehlt: kdeconnect soll aber nicht installiert werden
                Empfiehlt: kio-gdrive soll aber nicht installiert werden
                Empfiehlt: konsole soll aber nicht installiert werden
                Empfiehlt: kscreen soll aber nicht installiert werden
                Empfiehlt: ksshaskpass soll aber nicht installiert werden
                Empfiehlt: kwin-addons soll aber nicht installiert werden
                Empfiehlt: kwrite soll aber nicht installiert werden
                Empfiehlt: okular soll aber nicht installiert werden
                Empfiehlt: plasma-discover soll aber nicht installiert werden
                Empfiehlt: plasma-nm soll aber nicht installiert werden
                Empfiehlt: plasma-systemmonitor soll aber nicht installiert werden
                Empfiehlt: plasma-welcome soll aber nicht installiert werden
                Empfiehlt: plasma-widgets-addons soll aber nicht installiert werden
                Empfiehlt: plasma-workspace-wayland soll aber nicht installiert werden
 plasma-desktop : Hängt ab von: breeze (>= 4:5.14) soll aber nicht installiert werden
                  Hängt ab von: kde-cli-tools (>= 4:5.14) soll aber nicht installiert werden
                  Hängt ab von: kio soll aber nicht installiert werden
                  Hängt ab von: plasma-integration (>= 5.14) soll aber nicht installiert werden
                  Hängt ab von: plasma-workspace (>= 4:5.14) soll aber nicht installiert werden
                  Hängt ab von: libkf5newstuffcore5 soll aber nicht installiert werden
                  Empfiehlt: khelpcenter soll aber nicht installiert werden
                  Empfiehlt: kinfocenter (>= 4:5.14) soll aber nicht installiert werden
                  Empfiehlt: kscreen (>= 4:5.14) soll aber nicht installiert werden
                  Empfiehlt: ksshaskpass (>= 4:5.14) soll aber nicht installiert werden
                  Empfiehlt: kwin-x11 (>= 4:5.14) soll aber nicht installiert werden oder
                             kwin
                  Empfiehlt: plasma-discover (>= 5.14) soll aber nicht installiert werden

It is in German, but I hope you can understand it from the context. If not, I can translate it for you

Did you know you can force any application to show output in English (or any other language) regardless of what your system’s default language is, by running it with the text LANGUAGE=en in the beginning - before the command (or any other language code instead of “en”).

For example:

LANGUAGE=en apt install libgpgpmepp6

2 Likes

Oh wow, I didn’t know, thank you!

That is a lot of text that doesn’t say anything about libgpgmepp6… It is all about trying (and failing) to fix a completely broken set of packages.

APT will behave like that if you are trying to install a package that is deeply involved in the mess (not just tangentially, i.e. only has a “depends” on something in the mess).

I would try to collect all the packages in that big list and run apt install ALL THE PACKAGES and see if it solves the problem. If not - you’d need so delicate surgery.

I have tried that, but it (again) fails with libgpgmepp6. Also, I noticed that in almost all of the text about trying to fix broken packages, almost all of them depend on libkf5wallet5

nsc@nsc-laptop:~$ LANGUAGE=EN sudo apt install neon-desktop breeze kde-cli-tools kinfocenter kio kwin-wayland kwin-x11 sddm-theme-breeze dolphin dolphin-plugins frameworkintegration kde-config-plymouth kdeconnect kio-gdrive konsole kscreen ksshaskpass kwin-addons kwrite okular plasma-discover plasma-nm plasma-systemmonitor plasma-welcome plasma-widgets-addons plasma-workspace-wayland plasma-integration plasma-workspace libkf5newstuffcore5 khelpcenter okular-backends libgpgmepp6 libkf5wallet5 libkwalletbackend5-5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
breeze is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build39).
breeze set to manually installed.
dolphin is already the newest version (4:23.08.1-0xneon+22.04+jammy+release+build23).
dolphin set to manually installed.
dolphin-plugins is already the newest version (4:23.08.1-0xneon+22.04+jammy+release+build20).
dolphin-plugins set to manually installed.
frameworkintegration is already the newest version (5.110.0-0xneon+22.04+jammy+release+build57).
frameworkintegration set to manually installed.
kde-cli-tools is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build31).
kde-cli-tools set to manually installed.
kde-config-plymouth is already the newest version (5.27.8-0xneon+22.04+jammy+release+build26).
kde-config-plymouth set to manually installed.
khelpcenter is already the newest version (4:23.08.1-0xneon+22.04+jammy+release+build22).
khelpcenter set to manually installed.
kinfocenter is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build30).
kinfocenter set to manually installed.
kio is already the newest version (5.110.0-0xneon+22.04+jammy+release+build44).
kio set to manually installed.
kio-gdrive is already the newest version (23.08.1-0xneon+22.04+jammy+release+build21).
kio-gdrive set to manually installed.
konsole is already the newest version (4:23.08.1-0xneon+22.04+jammy+release+build30).
konsole set to manually installed.
kscreen is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build34).
kscreen set to manually installed.
ksshaskpass is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build23).
ksshaskpass set to manually installed.
kwin-addons is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build24).
kwin-addons set to manually installed.
kwin-wayland is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build43).
kwin-wayland set to manually installed.
kwin-x11 is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build43).
kwin-x11 set to manually installed.
libkf5newstuffcore5 is already the newest version (5.110.0-0xneon+22.04+jammy+release+build43).
libkf5newstuffcore5 set to manually installed.
neon-desktop is already the newest version (4+p22.04+trelease+git20230711.0933).
plasma-discover is already the newest version (5.27.8-0xneon+22.04+jammy+release+build29).
plasma-discover set to manually installed.
plasma-integration is already the newest version (5.27.8-0xneon+22.04+jammy+release+build34).
plasma-integration set to manually installed.
plasma-systemmonitor is already the newest version (5.27.8-0xneon+22.04+jammy+release+build25).
plasma-systemmonitor set to manually installed.
plasma-welcome is already the newest version (5.27.8-0xneon+22.04+jammy+release+build16).
plasma-welcome set to manually installed.
plasma-widgets-addons is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build24).
plasma-widgets-addons set to manually installed.
plasma-workspace is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build41).
plasma-workspace set to manually installed.
plasma-workspace-wayland is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build41).
plasma-workspace-wayland set to manually installed.
sddm-theme-breeze is already the newest version (4:5.27.8-0xneon+22.04+jammy+release+build41).
sddm-theme-breeze set to manually installed.
Starting pkgProblemResolver with broken count: 3
Starting 2 pkgProblemResolver with broken count: 3
Investigating (0) libkwalletbackend5-5:amd64 < 5.109.0-0xneon+22.04+jammy+release+build34 -> 5.110.0-0xneon+22.04+jammy+release+build36 @ii puU Ib >
Broken libkwalletbackend5-5:amd64 Depends on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.16.0-1.2ubuntu4.1 @ii pD > (>= 1.22.0)
  Considering libgpgmepp6:amd64 10026 as a solution to libkwalletbackend5-5:amd64 10016
Investigating (0) kwalletmanager:amd64 < 4:23.08.1-0xneon+22.04+jammy+release+build20 @ii K Ib >
Broken kwalletmanager:amd64 Depends on libkf5wallet-bin:amd64 < 5.109.0-0xneon+22.04+jammy+release+build34 @ii pR > (>= 5.24.0~)
  Considering libkf5wallet-bin:amd64 1 as a solution to kwalletmanager:amd64 6
  Added libkf5wallet-bin:amd64 to the remove list
Investigating (0) libpoppler131:amd64 < none -> 23.09.0-0xneon+22.04+jammy+release+build22 @un puN Ib >
Broken libpoppler131:amd64 Depends on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.16.0-1.2ubuntu4.1 @ii pD > (>= 1.22.0)
  Considering libgpgmepp6:amd64 10026 as a solution to libpoppler131:amd64 2
Investigating (1) libkwalletbackend5-5:amd64 < 5.109.0-0xneon+22.04+jammy+release+build34 -> 5.110.0-0xneon+22.04+jammy+release+build36 @ii puU Ib >
Broken libkwalletbackend5-5:amd64 Depends on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.16.0-1.2ubuntu4.1 @ii pD > (>= 1.22.0)
  Considering libgpgmepp6:amd64 10026 as a solution to libkwalletbackend5-5:amd64 10016
Investigating (1) kwalletmanager:amd64 < 4:23.08.1-0xneon+22.04+jammy+release+build20 @ii K Ib >
Broken kwalletmanager:amd64 Depends on libkf5wallet-bin:amd64 < 5.109.0-0xneon+22.04+jammy+release+build34 @ii pR > (>= 5.24.0~)
  Considering libkf5wallet-bin:amd64 6 as a solution to kwalletmanager:amd64 6
  Removing kwalletmanager:amd64 rather than change libkf5wallet-bin:amd64
Investigating (1) libpoppler131:amd64 < none -> 23.09.0-0xneon+22.04+jammy+release+build22 @un puN Ib >
Broken libpoppler131:amd64 Depends on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.16.0-1.2ubuntu4.1 @ii pD > (>= 1.22.0)
  Considering libgpgmepp6:amd64 10026 as a solution to libpoppler131:amd64 2
Investigating (2) libkwalletbackend5-5:amd64 < 5.109.0-0xneon+22.04+jammy+release+build34 -> 5.110.0-0xneon+22.04+jammy+release+build36 @ii puU Ib >
Broken libkwalletbackend5-5:amd64 Depends on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.16.0-1.2ubuntu4.1 @ii pD > (>= 1.22.0)
  Considering libgpgmepp6:amd64 10026 as a solution to libkwalletbackend5-5:amd64 10016
Investigating (2) libpoppler131:amd64 < none -> 23.09.0-0xneon+22.04+jammy+release+build22 @un puN Ib >
Broken libpoppler131:amd64 Depends on libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.16.0-1.2ubuntu4.1 @ii pD > (>= 1.22.0)
  Considering libgpgmepp6:amd64 10026 as a solution to libpoppler131:amd64 2
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libkwalletbackend5-5 : Depends: libgpgmepp6 (>= 1.22.0) but 1.16.0-1.2ubuntu4.1 is to be installed
 libpoppler131 : Depends: libgpgmepp6 (>= 1.22.0) but 1.16.0-1.2ubuntu4.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Also, what does it mean that Package X set to manually installed ?

Ok…

Depends: libgpgmepp6 (>= 1.22.0) but 1.16.0-1.2ubuntu4.1 is to be installed

That makes no sense - libgpgmepp6 version 1.16 is from upstream Ubuntu repositories, and Neon has newer versions. Check what apt policy libgpgpmepp6 say?

It should look something like this:

libgpgmepp6:
  Installed: 1.22.0-0xneon+22.04+jammy+stable+build9
  Candidate: 1.22.0-0xneon+22.04+jammy+stable+build9
  Version table:
 *** 1.22.0-0xneon+22.04+jammy+release+build5 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     1.21.0-0xneon+22.04+jammy+release+build4 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     1.20.0-0xneon+22.04+jammy+release+build3 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     1.20.0-0xneon+22.04+jammy+release+build2 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     1.16.0-1.2ubuntu4.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     1.16.0-1.2ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages

“set to manually installed” happens when you mention a package in the apt install command instead of that being pulled automatically due to dependencies. The effect of it is that if you remove some package that pulled in automatic dependencies, then APT will suggest that you remove them as well, which you can then do using apt autoremove - but if a package is marked as “manually installed”, the APT will never suggest you remove it as part of automatic dependency cleanup. In your case it may affect things like kio that is normally a dependency and if you remove all of Plasma, APT would suggest you also remove kio, but now - if you ever want to do that - you’d have to remember to remove it yourself.

Another thing that you can do to try to fix the system - which I’ve done in the past in severe cases:

Remove all the packages that are in the broken mess (basically anything that APT complains about) using dpkg -r --force-depends, then reinstall them (either all, or just the top level packages that pull in the dependencies).

A less risky way to do something similar is to do it package by package: choose one, run dpkg -r --force-depends on it, then run apt install -f to see if APT manages to fix the issue, and if not - take another package that APT just complained about and remove that and try again.

If you use a graphical session to run the process, it is very important to not do anything else in the session while you get this done - specifically not closing or launching applications, as this may break and you might get locked out of the system (also don’t let the lock screen engage).

I get this (which makes no sense):

nsc@nsc-laptop:~$ LANGUAGE=EN sudo apt policy libgpgpmepp6
N: Unable to locate package libgpgpmepp6

It actually makes sense - I made a typo that you copied and pasted :sweat_smile: sorry… :bowing_man:

It should be apt policy libgpgmepp6

Oh :sweat_smile:

Now there we go:

nsc@nsc-laptop:~$ LANGUAGE=EN sudo apt policy libgpgmepp6
libgpgmepp6:
  Installed: 1.21.0-0xneon+22.04+jammy+release+build4
  Candidate: 1.16.0-1.2ubuntu4.1
  Version table:
     1.22.0-0xneon+22.04+jammy+release+build5 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
 *** 1.21.0-0xneon+22.04+jammy+release+build4 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     1.20.0-0xneon+22.04+jammy+release+build3 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     1.20.0-0xneon+22.04+jammy+release+build2 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     1.16.0-1.2ubuntu4.1 1100
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     1.16.0-1.2ubuntu4 1100
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages

Ok, it should be able to update to 1.22.0, if not for the other issues.

What happens if you run

apt install libgpgmepp6=1.22.0-0xneon+22.04+jammy+release+build5

It has again dependency issues:

nsc@nsc-laptop:~$ LANGUAGE=EN sudo apt install libgpgmepp6=1.22.0-0xneon+22.04+jammy+release+build5
[sudo] password for nsc: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libgpgmepp6:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 -> 1.22.0-0xneon+22.04+jammy+release+build5 @ii puU Ib >
Broken libgpgmepp6:amd64 Depends on libgpgme11:amd64 < 1.21.0-0xneon+22.04+jammy+release+build4 | 1.16.0-1.2ubuntu4.1 @ii H > (>= 1.22.0)
  Considering libgpgme11:amd64 17 as a solution to libgpgmepp6:amd64 10031
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgpgmepp6 : Depends: libgpgme11 (>= 1.22.0) but 1.21.0-0xneon+22.04+jammy+release+build4 is to be installed
E: Unable to correct problems, you have held broken packages.

Excellent - this is moving forward :grin:.

Run apt policy libgpgme11 see what’s the latest version and add it to the install command - for example

sudo apt install libgpgmepp6=1.22.0-0xneon+22.04+jammy+release+build5 \
   libgpgme11=1.22.0-0xneon+22.04+jammy+release+build5

Then, whatever it complains about - lather rinse repeat.

Good luck!

Wow, that worked! Now I’m able to update my system and I could even install all the packages that were “broken” before!

Thank you so much!

1 Like