Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

You might want to run `apt-get -f install' to correct these. it says that everytime i try to download something and when i type it in the terminal it says

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? could anyone help plz?

share|improve this question
add comment

2 Answers

sudo is your friend. It will allow you to run your command as root.

sudo apt-get -f install

share|improve this answer
1  
thank you sire kind sir –  user64737 Dec 27 '10 at 7:49
add comment

Some examples of popular uses for the apt-get utility:

Install a Package: Installation of packages using the apt-get tool is quite simple. For example, to install the network scanner nmap, type the following:

sudo apt-get install nmap

Remove a Package: Removal of a package or packages is also a straightforward and simple process. To remove the nmap package installed in the previous example, type the following:

sudo apt-get remove nmap
share|improve this answer
add comment

Your Answer

 
discard

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.