0

I want to install the build-essential package. I have tried with:

sudo apt-get install build-essential

But I get an error of package not found. I think this error is probably due to firewalled network of my company.

So I tried to download its debian package. When I run it, it gives me a dependency error on g++4.6.

So I try to install g++4.6, but it depends on libstdc++6-4.6. Then I try to install this library, but this one has a dependency on g++4.6.

So now I am confused to how to do this. Please help me.!!!

Rajit
  • 1
  • 2

1 Answers1

0

Try the below command,it will install build-essential package,

sudo apt-get install build-essential

If you face any dependency error then run sudo apt-get install -f

Avinash Raj
  • 78,556
  • I have tried it, but it says "package not found". – Rajit Feb 20 '14 at 06:47
  • Did you enable universe repository from software and updates? – Avinash Raj Feb 20 '14 at 06:50
  • I added a few lines, that i found on this site regarding universe in /etc/apt/sources.list, but it didn't help me. – Rajit Feb 20 '14 at 06:51
  • If no then enable it and update the repositories by running sudo apt-get update.And then try to. run the command in my answer. – Avinash Raj Feb 20 '14 at 06:52
  • Search for software and updates in dash.After opening it,enable the universe repository. – Avinash Raj Feb 20 '14 at 06:54
  • I added following lines in /et/apt/sources.list deb http://archive.ubuntu.com/ubuntu/ quantal universe deb http://archive.ubuntu.com/ubuntu/ quantal-updates universe deb http://security.ubuntu.com/ubuntu/ quantal-security universe and when i do sudo apt-get update, i get this error E: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: NODATA 1 NODATA 2 – Rajit Feb 20 '14 at 07:10
  • why you add quantal repository in precise?Please do what i said. – Avinash Raj Feb 20 '14 at 07:17
  • Please tell me what changes should i do..? – Rajit Feb 20 '14 at 07:26
  • Search for software and updates in dash.After opening it,enable the universe repository.update the repositories by running sudo apt-get update.And then try to run the command given in my answer. – Avinash Raj Feb 20 '14 at 07:28
  • i still get error of GPG: invalid signatures: NODATA1 NODATA2 – Rajit Feb 20 '14 at 07:36
  • post the output of sudo apt-get update command on your question. – Avinash Raj Feb 20 '14 at 07:38
  • see http://askubuntu.com/questions/104213/gpg-invalid-signature – Avinash Raj Feb 20 '14 at 07:40