pkgProblemResolver :: Resolver interrupções geradas Ubuntu 15.10

0

Quando tento instalar algo recebi um erro de dependências e uma versão incorreta do gcc-5-base instalada.

Quando coloco o sudo apt-get install anyprogram:

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 cpp-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 ddd : Depends: libxm4 (>= 2.3.4) but it is not going to be installed
 g++-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 gcc-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libasan2 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libatomic1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libc-l10n : Breaks: locales (< 2.21-0experimental1) but 2.13+git20120306-21 is to be installed
 libc6-dbg : Depends: libc6 (= 2.21-6) but 2.21-0ubuntu4 is to be installed
 libc6-dev : Depends: libc6 (= 2.21-6) but 2.21-0ubuntu4 is to be installed
 libcc1-0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libcilkrts5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libgcc-5-dev : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libgcc1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libgomp1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libitm1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 liblsan0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libmpx0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libquadmath0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libstdc++-5-dev : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
 libstdc++6 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Então eu coloco o sudo apt-get -f install:

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... failed.
The following packages have unmet dependencies:
 cpp-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 g++-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 gcc-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libasan2 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libatomic1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libc-l10n : Breaks: locales (< 2.21-0experimental1) but 2.13+git20120306-21 is  
installed
 libc6-dbg : Depends: libc6 (= 2.21-6) but 2.21-0ubuntu4 is installed
 libc6-dev : Depends: libc6 (= 2.21-6) but 2.21-0ubuntu4 is installed
 libcc1-0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libcilkrts5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libgcc-5-dev : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libgcc1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libgomp1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libitm1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 liblsan0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libmpx0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libquadmath0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Eu tentei usar o sudo apt-get update (funciona, mas o problema persistir), e o sudo apt-get upgrade, mas com isso eu tenho o mesmo erro:

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... failed.
The following packages have unmet dependencies:
 cpp-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 g++-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 gcc-5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libasan2 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libatomic1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libc-l10n : Breaks: locales (< 2.21-0experimental1) but 2.13+git20120306-21 is  
installed
 libc6-dbg : Depends: libc6 (= 2.21-6) but 2.21-0ubuntu4 is installed
 libc6-dev : Depends: libc6 (= 2.21-6) but 2.21-0ubuntu4 is installed
 libcc1-0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libcilkrts5 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libgcc-5-dev : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libgcc1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libgomp1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libitm1 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 liblsan0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libmpx0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
 libquadmath0 : Depends: gcc-5-base (= 5.2.1-22ubuntu2) but 5.3.1-5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
    
por dmarcosl 11.01.2016 / 11:28

1 resposta

2

Eu tenho o mesmo problema e consertei. O problema ocorreu depois que eu instalei manualmente uma versão incorreta do gcc com o dpkg.

Primeiro, você precisa saber qual pacote causou o problema dependente. Use dpkg -l | grep gcc para encontrar o pacote gcc errado da versão do pacote diferente. gcc-5-base é o pacote de versões incorreto para mim.

Então eu tento reinstalar o pacote gcc-5-base, use sudo apt-get install --reinstall gcc-5-base . Mas erro ocorre após este comando. Erro gostei:

% bl0ck_qu0te%

Renomeie o nome do diretório e o erro será corrigido. Por favor, consulte enter descrição do link aqui

Agora, use sudo apt-get install --reinstall gcc-5-base para obter a versão anterior do gcc-5-base.

Espero que funcione para você.

    
por super_mice 20.04.2016 / 18:36