7.10 Still no build-essential! And can't use apt-get now! GRR!

Asked by Rickr765

Can't use apt-get. Error message is as follows:
rick@number5:~$ apt-get install build-essential
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
rick@number5:~$ netinfo
bash: netinfo: command not found
rick@number5:~$ su
Password:
su: Authentication failure
Sorry.
rick@number5:~$ vi hello.c
rick@number5:~$ cc -o hello hello.c
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
rick@number5:~$

This is extremely irritating. Things should normally get better from version to version, not worse.

Help system is nearly worthless. You want help testing the next release? I will be happy to give you LOTS of suggestions.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Andreas (register-rez2000) said :
#1

Hi,

you have to use the sudo command! This will give you the needed authorization.

> sudo apt-get install build-essential

The system will ask you for your password.

The same applies to the su command. You have to run sudo su.

Andreas

Revision history for this message
Rickr765 (rickr765) said :
#2

Thanks for the quick response! It took me 5 minutes of web searches to find the fact that, when you use the sudo command, you have to enter *your own* password.

I still think that 'cc -o hello hello.c' ought to work straight out of the box. It's one of the first things a Unix user does. I'm astonished that it's still not fixed in ubuntu 7... There is a lot of great stuff here, and for the most part, the installation is smooth as glass.

My company is changing from PVCS to Subversion, so the developers are all excited to finally be able to move from Windows to Linux. Hooray!

Thanks again!

Andreas <email address hidden> wrote: Your question #16523 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/16523

    Status: Open => Answered

Andreas proposed the following answer:
Hi,

you have to use the sudo command! This will give you the needed
authorization.

> sudo apt-get install build-essential

The system will ask you for your password.

The same applies to the su command. You have to run sudo su.

Andreas

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/16523/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/16523

You received this question notification because you are a direct
subscriber of the question.

 __________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#3

Plase don't reply to this message open your browser and visit
https://answers.launchpad.net/ubuntu/+question/16523

Mark it solved by Andreas

I usually look at open question, to give help, so please close this question.
We must read all the thread to discover is solved...!

Thank you

Revision history for this message
Rickr765 (rickr765) said :
#4

Solved by Andreas. Thanks! I still think the distro should be fixed to include the package build-essentials.