J'ai l'icône d'erreur rouge sur les en-têtes et j'ai suivi de nombreux conseils du forum mais aucun d'entre eux n'a fonctionné pour moi. J'utilise Ubuntu en hongrois mais vous pouvez peut-être lire les informations importantes contenues dans le message d'erreur. J'ai tapé Sudo apt-get install -f
et voici le résultat:
$ Sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
kde-config-telepathy-accounts
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 213142 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy- accounts_4%3a15.12.3-0ubuntu1_AMD64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
MODIFIER!:
~$ Sudo apt-get autoremove kde-config-telepathy-accounts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'kde-config-telepathy-accounts' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
kde-telepathy-minimal : Depends: kde-config-telepathy-accounts (>= 15.04.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
hamana@hamana-AO756:~$ Sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
hamana@hamana-AO756:~$ Sudo apt-get update
Get:1 http://hu.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:4 http://hu.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Fetched 437 kB in 1s (338 kB/s)
Reading package lists... Done
hamana@hamana-AO756:~$ Sudo apt-get --reinstall kde-config-telepathy-accounts
E: Command line option --reinstall is not understood in combination with the other options
hamana@hamana-AO756:~$ Sudo apt-get install --reinstall kde-config-telepathy-accounts
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
(Reading database ... 213142 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hamana@hamana-AO756:~$
Sudo dpkg --configure -a
si ne fonctionne pas alors
Sudo apt-get autoremove <packagename>
Sudo apt-get autoclean
Sudo apt-get update
Sudo apt-get install --reinstall <packagename>
EDIT: Si cela ne fonctionne pas, supprimez le fichier sources.list et créez un nouveau fichier sources.list ...
Sudo rm /etc/apt/sources.list
Ensuite, tapez
Sudo software-properties-gtk
Cela ouvrira software-properties-gtk et un newsources.list sera créé automatiquement.
Puis changez le serveur en US ou en un autre serveur de votre choix. Vous devez activer les référentiels à partir de la nouvelle boîte de dialogue pour créer un nouveau fichier sources.list.
Cochez toutes les cases puis cliquez sur Revert puis cliquez sur fermer.
Besoin de restaurer les référentiels par défaut
Sudo apt-get update && Sudo apt-get dist-upgrade -y
(Il est recommandé de sauvegarder ce fichier avant l'installation pour le récupérer si de telles choses se produisent)