Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.
share|improve this question
Have you tried sudo apt-get update – blade19899 Jan 10 '14 at 12:09
@blade19899 yes also tried – user85857 Jan 10 '14 at 12:11
sudo apt-get install -f is also something one uses in this case – blade19899 Jan 10 '14 at 12:13
i tried but getting same error. – user85857 Jan 10 '14 at 12:28
Please see this post:… – blade19899 Jan 10 '14 at 12:57

The command build-dep is used to install the dependencies of a package that you want to compile from source. Have you tried to execute

sudo apt-get install build-essential


share|improve this answer
yes i tried this one too but getting same error. – user85857 Jan 10 '14 at 12:20
What version of ubuntu are you using? Is it a clean install or you've modified anything that could be relevant for package retrieval and installation (such as software repositories)? – Antonio Jan 10 '14 at 12:24
i am using 13.10 version. i tried installation of codeblock but quit it in the middle after that i tried a lot but getting same error. – user85857 Jan 10 '14 at 12:27
are you using any extra package repository other than the default ones? If yes try to disable them, run sudo apt-get update and then try again to install the packages – Antonio Jan 10 '14 at 12:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.