Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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

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

sudo apt-get -f install

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

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

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.