APT vs. dpkg - Removendo pacotes com um problema de dependência (telepatia)

1

Eu queria experimentar um aplicativo (Kamoso), mas sua instalação falhou e agora um ícone da bandeja do sistema informa:

An error occurred ... run Package Manager or apt-get to see what is wrong. Error: BrokenCount>0

$ sudo apt-get -f install
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 10 not upgraded.
2 not fully installed or removed.
Need to get 0 B/148 kB of archives.
After this operation, 808 kB of additional disk space will be used.


  Do you want to continue? [Y/n] y
    (Reading database ... 1330003 files and directories currently installed.)
    Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.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_i386.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-0ubuntu7) ...
    Errors were encountered while processing:
     /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

O centro do software do Ubuntu falha na reparação:

    installArchives() failed: (Reading database ... 
(Reading database ... 100%
(Reading database ... 1330003 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.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_i386.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-0ubuntu7) ...
Errors were encountered while processing:
 /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.deb
dpkg: dependency problems prevent configuration of kde-telepathy-minimal:
 kde-telepathy-minimal depends on kde-config-telepathy-accounts (>= 15.04.0); however:
  Package kde-config-telepathy-accounts is not installed.

dpkg: error processing package kde-telepathy-minimal (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kde-telepathy:
 kde-telepathy depends on kde-telepathy-minimal (= 15.04.20ubuntu1); however:
  Package kde-telepathy-minimal is not configured yet.

dpkg: error processing package kde-telepathy (--configure):
 dependency problems - leaving unconfigured

Eu tentei remover ou limpar a kde-telepatia - mínima ou kde telepatia:

$ sudo apt-get purge kde-telepathy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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).

Você poderia me ajudar a remover qualquer um dos pacotes, como uma solução para limpar essa instalação quebrada e fazer com que o gerenciador de pacotes volte ao trabalho?

    
por ubuntubu 24.04.2017 / 00:22

1 resposta

1

Obrigado a @ user535733 pelo útil comment : "Use o dpkg para desinstalar o pacote ofensivo (conflitante), então use o apt para limpar as dependências"

Veja como removi os pacotes conflitantes:

$ sudo dpkg --remove kde-telepathy
(Reading database ... 1330002 files and directories currently installed.)
Removing kde-telepathy (15.04.20ubuntu1) ...

$ sudo dpkg --remove kde-telepathy-minimal
(Reading database ... 1329999 files and directories currently installed.)
Removing kde-telepathy-minimal (15.04.20ubuntu1) ...

Depois eu limpei com

sudo apt autoremove
    
por ubuntubu 24.04.2017 / 17:04