4
Contributors
9
Replies
14
Views
8 Years
Discussion Span
Last Post by tclyae
Featured Replies
  • 1
    John A 1,896   7 Years Ago

    What have you got in the /etc/apt/sources.list file? Have you run 'sudo apt-get update' before trying to install build-essential? Read More

1

What have you got in the /etc/apt/sources.list file? Have you run 'sudo apt-get update' before trying to install build-essential?

Comments
good points
0

For want of sounding obvious?

sudo apt-get install g++?

Pakage g++ is not available, but is ref. to by another pkg. This may mean that the pkg is missing, has been obsoleted or is available from another source.
E : Pkg g++ has no installation candidate.

I also tried going thru the pkg manager (GUI tool). There were g++ pkges, I tried installing them from the list. But I got the error msg : Not installable.

Thanks

0

What have you got in the /etc/apt/sources.list file? Have you run 'sudo apt-get update' 'sudo apt-get update' before trying to install build-essential?

I ran the 'sudo apt-get update' .

Then I tried sudo apt-get install g++
It says : Pkg g++ is not available but is referred to by another pkg.
This may mean that the pkg is missing /obsoleted or is only available from another source.

Pkg G++ has no installation candidate.

Thanks

0

These are the steps I executed :

1. I ran the 'sudo apt-get update' .

2. Then I tried sudo apt-get install g++

the error message : Pkg g++ is not available but is referred to by another pkg.This may mean that the pkg is missing /obsoleted or is only available from another source.
Pkg G++ has no installation candidate.
end of error message

0

Yes I did it !
Thanks

I ran the 'sudo apt-get update' .

Then I tried sudo apt-get install g++
It says : Pkg g++ is not available but is referred to by another pkg.
This may mean that the pkg is missing /obsoleted or is only available from another source.

Pkg G++ has no installation candidate.

Thanks

0

hello
use this
$sudo gedit /etc/apt/sources.list
when the file opened put # as the first charactre of each line save file
and put ubuntu installation cd to optical drive
then try this and it will solve your problem
$sudo apt-get install g++

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.