Dependências não satisfeitas para libstdc ++

2

Quando eu digito:

sudo apt-get install libstdc++

eu tenho:

The following packages have unmet dependencies:
 libstdc++-4.8-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-8ubuntu1 is to be installed
                 Conflicts: libstdc++6-4.6-doc but 4.6.4-6ubuntu2 is to be installed
                 Conflicts: libstdc++6-4.7-doc but 4.7.3-12ubuntu1 is to be installed
 libstdc++6-4.6-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-8ubuntu1 is to be installed
 libstdc++6-4.6-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-8ubuntu1 is to be installed
 libstdc++6-4.7-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-8ubuntu1 is to be installed
                  Conflicts: libstdc++6-4.6-dbg but 4.6.4-6ubuntu2 is to be installed
 libstdc++6-4.7-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-8ubuntu1 is to be installed
                  Conflicts: libstdc++6-4.6-doc but 4.6.4-6ubuntu2 is to be installed
 libstdc++6-4.8-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-8ubuntu1 is to be installed
                  Conflicts: libstdc++6-4.6-dbg but 4.6.4-6ubuntu2 is to be installed
                  Conflicts: libstdc++6-4.7-dbg but 4.7.3-12ubuntu1 is to be installed
 libstdc++6-4.8-dbg-armhf-cross : Conflicts: libstdc++6-4.7-dbg-armhf-cross but 4.7.3-11ubuntu1cross1.85 is to be installed
E: Unable to correct problems, you have held broken packages.

Idéias?

Editar:

Mesmas questões com:

sudo apt-get install clang++

Tem:

The following packages have unmet dependencies:
 clang-3.3 : Breaks: clang-3.4 but 1:3.4-1ubuntu3 is to be installed
 clang-3.4 : Breaks: clang-3.3 but 1:3.3-16ubuntu1 is to be installed
 clang-3.5 : Breaks: clang but 1:3.4-0ubuntu1 is to be installed
         Breaks: clang-3.3 but 1:3.3-16ubuntu1 is to be installed
         Breaks: clang-3.4 but 1:3.4-1ubuntu3 is to be installed
 clang-format-3.3 : Breaks: clang-format-3.4 but 1:3.4-1ubuntu3 is to be installed
 clang-format-3.4 : Breaks: clang-format-3.3 but 1:3.3-16ubuntu1 is to be installed
 clang-format-3.5 : Breaks: clang-format-3.3 but 1:3.3-16ubuntu1 is to be installed
 python-clang-3.3 : Breaks: python-clang-3.4 but 1:3.4-1ubuntu3 is to be installed
 python-clang-3.4 : Breaks: python-clang-3.3 but 1:3.3-16ubuntu1 is to be installed
                Breaks: python-clang-3.5 but 1:3.5~svn201651-1ubuntu1 is to be installed
 python-clang-3.5 : Breaks: python-clang-3.3 but 1:3.3-16ubuntu1 is to be installed
                Breaks: python-clang-3.4 but 1:3.4-1ubuntu3 is to be installed
 E: Unable to correct problems, you have held broken packages.
    
por Sancho 29.05.2014 / 12:58

1 resposta

3

libstdc++ não é um nome de pacote binário. Como um pacote que corresponde ao nome libstdc++ não foi encontrado, apt-get pesquisa pacotes que correspondem a essa regex e, portanto, deseja instalar 4.4, 4.6, 4.7 e 4.8 e os arquivos associados -doc e -dbg . O mesmo se aplica para clang++

Em vez disso, os pacotes que você está procurando provavelmente são libstdc++6 (para o seu primeiro comando) e libc++1 (para o segundo comando).

    
por saiarcot895 29.05.2014 / 13:59