"The program 'g++' can be found in the following packages"

Posted by mezamorphic on Ask Ubuntu See other posts from Ask Ubuntu or by mezamorphic
Published on 2013-11-03T21:20:44Z Indexed on 2013/11/03 22:17 UTC
Read the original article Hit count: 539

Filed under:
|
|
|
|

I have g++ 4.6, 4.7 and 4.8 installed, but not g++ itself. I am using Ubuntu 12.04. If I do:

g++ --version

it says:

The program 'g++' can be found in the following packages:
 * g++
 * pentium-builder

I have tried the following:

sudo apt-get update

then

sudo apt-get -f install

then

sudo apt-get install g++

but still I get the same when checking g++ version. Please help?

Doing apt-cache policy g++ yields:

g++:
  Installed: 4:4.6.3-1ubuntu5
  Candidate: 4:4.6.3-1ubuntu5
  Version table:
 *** 4:4.6.3-1ubuntu5 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about programming