this post was submitted on 23 May 2025
7 points (88.9% liked)

Ubuntu Linux

1868 readers
20 users here now

Linux for Human Beings.

Ubuntu is a popular Linux operating system for PC / mobile devices, etc.

Developed by Canonical & based on Debian (another older Linux OS) which is known for it's rock solid stability.

Ubuntu is trusted everywhere computing by professionals and common users alike.

https://ubuntu.com/

founded 5 years ago
MODERATORS
 

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
all 19 comments
sorted by: hot top controversial new old
[–] Merlu@lemmy.ml 3 points 10 hours 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 3 points 11 hours ago (1 children)

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.ml 2 points 11 hours ago* (last edited 11 hours ago) (1 children)

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 3 points 11 hours ago (1 children)

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.

[–] Merlu@lemmy.ml 1 points 11 hours ago (1 children)

I looked into the manual, but didn't found a such thing.

[–] jaybone@lemmy.zip 2 points 10 hours 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 1 points 11 hours ago* (last edited 11 hours ago) (1 children)

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.ml 2 points 11 hours ago (1 children)

Tried it, didn't changed anything.

[–] CameronDev@programming.dev 1 points 10 hours ago* (last edited 10 hours ago)

~~apt uninstall libkpim5akonadisearch-data not help? apt-get autoremove might also be worth a try.~~

nevermind, you got it, congrats :)