Hello,

I can’t do anything that implies the use of dpkg or apt. No matter what i do, i get the same message (on french).

stem@stem-kubuntu:~$ sudo apt upgrade
Vous pouvez lancer « apt --fix-broken install » pour corriger ces problèmes.
Impossible de satisfaire les dépendances : 
 libkf5textedittexttospeech1 : Dépend: libkf5textaddons-data (>= 1.5.4-0ubuntu1) mais il n'est pas installable
 libkf5textemoticonscore1 : Dépend: libkf5textaddons-data (>= 1.5.4-0ubuntu1) mais il n'est pas installable
 libkpim6akonadisearchcore6 : Dépend: libakonadisearch-data (>= 4:24.12.3-0ubuntu1) mais il n'est pas installé
Erreur : Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet
   (ou indiquez une solution).
stem@stem-kubuntu:~$ sudo apt --fix-broken install
Correction des dépendances... Fait              
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libaccounts-qt5-1               libkpim5akonadicontact5      libkpim5imap-data              libkpim5ldap5           libkuserfeedbackcore1
  libkaccounts2                   libkpim5akonadisearchdebug5  libkpim5imap5                  libkpim5libkdepim-data  libkuserfeedbackwidgets1
  libkpim5akonadiagentbase5       libkpim5contacteditor5       libkpim5kontactinterface-data  libkpim5libkdepim5      libqt5keychain1
  libkpim5akonadicontact-data     libkpim5grantleetheme-data   libkpim5kontactinterface5      libkpim5textedit-data   libsignon-qt5-1
  libkpim5akonadicontact-plugins  libkpim5grantleetheme5       libkpim5ldap-data              libkuserfeedback-l10n   qml-module-org-kde-userfeedback
Veuillez utiliser « sudo apt autoremove » pour les supprimer.

Installation de dépendances : 
  libakonadisearch-data

SUPPRESSION :
  libkf5textedittexttospeech1  libkf5textemoticonscore1

Sommaire :
  Mise à niveau de : 0. Installation de : 1Supprimé : 2. Non mis à jour : 0
  7 partiellement installés ou enlevés.
Taille du téléchargement : 0 B / 27,8 kB
  Espace libéré : 190 kB

Continuer ? [O/n] 
(Lecture de la base de données... 403326 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../libakonadisearch-data_4%3a24.12.3-0ubuntu1_all.deb ...
Dépaquetage de libakonadisearch-data (4:24.12.3-0ubuntu1) ...
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/libakonadisearch-data_4%3a24.12.3-0ubuntu1_all.deb (--unpack) :
 trying to overwrite '/usr/share/locale/ar/LC_MESSAGES/akonadi_search.mo', which is also in package libkpim5akonadisearch-data (4:23.08.5-0ubuntu3)
Des erreurs ont été rencontrées pendant l'exécution :
 /var/cache/apt/archives/libakonadisearch-data_4%3a24.12.3-0ubuntu1_all.deb
Erreur : Sub-process /usr/bin/dpkg returned an error code (1)
stem@stem-kubuntu:~$

My hardware

Intel Core i5-8500
Ubuntu 25.04
nvidia GTX 1050i
  • Merlu@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    FIXED !

    sudo dpkg --remove --force-depends libkpim5akonadisearch-data
    sudo dpkg -i /var/cache/apt/archives/libakonadisearch-data_4:24.12.3-0ubuntu1_all.deb
    
  • jaybone@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    I’ve seen similar errors in the past, but I don’t speak French and don’t remember exactly what I did.

    Someone else is suggesting a full reinstall. I don’t think you need to do that. And if you’re going to do that anyway, you may as well try to fix it first.

    Can you uninstall the packages it is complaining about?

    • Merlu@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 day ago

      I tried to, but i’m trapped in an endless loop of broken dependancies.

      stem@stem-kubuntu:~$ sudo apt remove libkpim5akonadisearch-data
      Vous pouvez lancer « apt --fix-broken install » pour corriger ces problèmes.
      Impossible de satisfaire les dépendances : 
       libkpim5akonadisearchcore5 : Dépend: libkpim5akonadisearch-data (>= 4:23.08.5-0ubuntu3) mais ne sera pas installé
                                    Recommande: libkf5akonadisearch-bin mais il n'est pas installable
       libkpim6akonadisearchcore6 : Dépend: libakonadisearch-data (>= 4:24.12.3-0ubuntu1) mais ne sera pas installé
                                    Recommande: libakonadisearch-bin mais ne sera pas installé
      Erreur : Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet
         (ou indiquez une solution).
      Erreur : The following information from --solver 3.0 may provide additional context:
         Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet
         (ou indiquez une solution).
      stem@stem-kubuntu:~$
      
      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        If it’s just a small number of packages can you force remove them without it checking for dependencies?

        I think apt has an option for that. If not I’m pretty sure dpkg has such an option.

          • jaybone@lemmy.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            To force remove a package using dpkg, you can use the command dpkg --remove --force-all [package_name]. However, be cautious as this method can lead to system instability if not used properly.

            Though like I say, I would only do this if it’s a small number of packages.

            If you have a large dependency tree, especially leading all the way back to core libraries, this will be a pain. (Though if it’s already that bad, then you probably have bigger problems anyway.)

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 day ago

    Did you try the apt --fix-broken?

    You can also try moving that conflicting file somewhere else and reinstall.

    sudo mv /usr/share/locale/ar/LC_MESSAGES/akonadi_search.mo ~/

    You may have to repeat that a few times to get it working, otherwise try uninstalling the conflicting package.

    • Merlu@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      1 day ago

      “Copy to chatgpt” is the new “google is your friend”, apparently. I asked for help here precisely to avoid AI assistant by ethical principles.

        • Merlu@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          1 day ago

          No matter the localization, all AI assistants have the same flaws that motive me to avoid them at all costs.

      • Fecundpossum@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        3
        ·
        1 day ago

        This is the level of error that would usually lead to me, backing up my important files on a removable media of some kind and reinstalling my operating system

        • Merlu@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          1
          ·
          1 day ago

          I really hope there is a simpler fix than a full reinstall.

          • Fecundpossum@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            3
            ·
            edit-2
            1 day ago

            For me, it was always just a good excuse to distro hop and find something new to explore. There have been plenty of problems that I’ve fixed, but when I failed to find the culprit a reinstall only takes about 20 minutes.

            • Merlu@lemmy.mlOP
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              1 day ago

              I’d really like to avoid to reconfigure all my system from scratch because of a OS reinstallation after this kind of problem. I have the feeling it’s like using a bazooka to kill a mosquito.