Problema de versão múltipla do GCC

0

Estou com muitos problemas com o GCC. Primeiro, tentei instalar um aplicativo (ginga) e recebi um problema do GCC. A dependência é sobre ter uma versão do gcc, mas o aplicativo precisa de outra. Eu instalei a versão pedida, mas os conflitos ainda. Então, eu tenho muitos problemas com o GCC e agora não consigo instalar nada por causa de dependências. Quando tento instalar algo, tenho essa saída:

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:
 build-essential : Depends: gcc (>= 4:4.4.3) but it is not going to be installed
                   Depends: g++ (>= 4:4.4.3) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
 cpp-4.8 : Depends: gcc-4.8-base (= 4.8.4-1) but 4.8.5-1 is to be installed
 dkms : Depends: gcc but it is not going to be installed
 gcc-4.8 : Depends: gcc-4.8-base (= 4.8.4-1) but 4.8.5-1 is to be installed
           Depends: binutils (>= 2.24.90.20141219) but 2.24-5ubuntu13 is to be installed
           Depends: libgcc-4.8-dev (>= 4.8.4-1) but it is not going to be installed
 gcc-multilib : Depends: gcc (>= 4:4.8.2-1ubuntu6) but it is not going to be installed
                Depends: gcc-4.8-multilib (>= 4.8.2-5~) but it is not going to be installed
 libasan0 : Depends: gcc-4.8-base (= 4.8.4-1) but 4.8.5-1 is to be installed
 libatomic1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
 libc6:i386 : Depends: libgcc1:i386 but it is not going to be installed
 libgcc1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
 libgfortran3 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
 libgl1-mesa-dri-lts-utopic:i386 : Depends: libgcc1:i386 (>= 1:4.7) but it is not going to be installed
 libglu1-mesa:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libgomp1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
 libitm1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
 libjack-jackd2-0:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libllvm3.5:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libmysqlclient18:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-declarative:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-network:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-opengl:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-script:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-scripttools:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-sql:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-sql-mysql:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-xml:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqt4-xmlpatterns:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqtcore4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqtdbus4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqtgui4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libqtwebkit4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libquadmath0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
 libstdc++-4.8-dev : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
                     Depends: libgcc-4.8-dev (= 4.8.4-2ubuntu1~14.04) but it is not going to be installed
 libstdc++6 : Depends: gcc-4.9-base (= 4.9.1-16ubuntu6) but 4.9.3-4 is to be installed
 libstdc++6:i386 : Depends: gcc-4.9-base:i386 (= 4.9.1-16ubuntu6) but it is not going to be installed
                   Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
 libtsan0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.5-1 is to be installed
 sa-compile : Depends: gcc but it is not going to be installed
 simplescreenrecorder-lib:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) 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? Eu realmente não sei o que fazer.

pl_rock. Primeiro, obrigado por me ajudar.

Eu fiz o que você sugere, mas não funcionou. A resposta para "apt-get -f install" é: E: Incapaz de corrigir dependências

Para limpar o gcc eu tive que usar "--force-all" e depois de limpar o gcc (4.8 e 4.9) tentei o apt-get autoremove, mas obtive a mesma saída:

root@gleidson-Inspiron-5423:/home/gleidson# apt-get autoremove 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: cpp-4.8 : Depends: gcc-4.8-base (= 4.8.4-1) but it is not installed dkms : Depends: gcc but it is not installed gcc-multilib : Depends: gcc (>= 4:4.8.2-1ubuntu6) but it is not installed Depends: gcc-4.8-multilib (>= 4.8.2-5~) but it is not installed libasan0 : Depends: gcc-4.8-base (= 4.8.4-1) but it is not installed libatomic1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed libc6:i386 : Depends: libgcc1:i386 but it is not installed libgcc1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed libgfortran3 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed libgl1-mesa-dri-lts-utopic:i386 : Depends: libgcc1:i386 (>= 1:4.7) but it is not installed libglu1-mesa:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libgomp1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed libitm1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed libjack-jackd2-0:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libllvm3.5:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libmysqlclient18:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-declarative:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-network:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-opengl:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-script:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-scripttools:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-sql:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-sql-mysql:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-xml:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqt4-xmlpatterns:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqtcore4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqtdbus4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqtgui4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libqtwebkit4:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libquadmath0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed libstdc++-4.8-dev : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed Depends: libgcc-4.8-dev (= 4.8.4-2ubuntu1~14.04) but it is not installed libstdc++6 : Depends: gcc-4.9-base (= 4.9.1-16ubuntu6) but it is not installed libstdc++6:i386 : Depends: gcc-4.9-base:i386 (= 4.9.1-16ubuntu6) but it is not installed Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed libtsan0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but it is not installed sa-compile : Depends: gcc but it is not installed simplescreenrecorder-lib:i386 : Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed E: Unmet dependencies. Try using -f.

E, se eu usar o "-f" como sugiro, recebo: E: não é possível corrigir as dependências.

    
por Gleidson Campos 02.09.2015 / 02:00

1 resposta

0

você está tendo este problema porque reinstalou o gcc , mas ainda existem dependências mais antigas que conflitam com a nova dependência. então execute o comando:

apt-get -f install

ele resolverá a dependência e instalará gcc . Se você ainda tiver problemas, purgar o gcc e depois executar o comando:

 sudo apt-get autoremove 

ele removerá a dependência mais antiga e reinstalará o gcc e sua dependência

    
por pl_rock 02.09.2015 / 04:11