I tried all the commands
sudo apt-get build-dep build-essential
sudo apt-get install gcc
sudo apt-get install g++
But all time I am getting this error.
The following packages have unmet dependencies:
build-essential : Depends: gcc (>= 4:4.4.3) but it is not going to be installed
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
E: Build-dependencies for build-essential could not be satisfied.
sudo apt-get update
sudo apt-get install -f
is also something one uses in this case