Não é possível instalar o g ++ no Ubuntu 17.04

0

Este é o meu problema:

sudo apt-get install g++
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++ is already the newest version (4:6.3.1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

:~$ g++
The program g++ is not installed. You can install it by typing:
sudo apt install g++

Eu tentei instalar o essential e o gcc e também tive o mesmo problema.

    
por Javi BL 09.07.2017 / 12:37

1 resposta

1

Parece que algo removeu o link simbólico em /usr/bin/g++ que é normalmente configurado durante a instalação do pacote g++ . Você pode tanto

  • reinstale o pacote:

    sudo apt-get install --reinstall g++
    
  • ou informe update-alternative , que normalmente gerencia o link simbólico em /usr/bin/g++ , para reconfigurar o link:

    sudo update-alternatives --auto g++
    
por David Foerster 10.07.2017 / 15:47