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?

link|improve this question
feedback

2 Answers

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

sudo apt-get -f install

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

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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