Ubuntu14.04 não pode instalar o g ++

1

Meu ambiente de computador: Ubuntu 14.04, 64 bit OS; versão gcc: gcc versão 4.8.4 (Ubuntu 4.8.4-2ubuntu1 ~ 14.04)

Eu tentei instalar o g + + executando:

sudo apt-get install g++

Então eu tenho essa informação de saída:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Como posso resolver isso?

    
por Peak 23.09.2015 / 12:44

1 resposta

0

Você precisa ativar trusty-updates . Abra o Software & amp; Atualiza e define uma espessura para trusty-updates na aba Atualizações

Depois disso

sudo apt-get update
sudo apt-get install --reinstall g++
    
por A.B. 24.09.2015 / 08:24