Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install proxychains from terminal and the code is

apt-get install proxychains

but it said

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?

How can I fix this?

share|improve this question
add comment

1 Answer 1

Execute the same command with sudo

sudo apt-get install proxychains

share|improve this answer
    
Can you give a reason for why to use sudo? explain. –  Alvar May 5 '13 at 11:04
    
Installation and uninstallation are Administrative tasks. You have to elevate your privileges to allow your user to install. Thats why you need sudo. –  thefourtheye May 5 '13 at 11:07
1  
Most of the time you are using Ubuntu you do not have the power to make significant changes to the system such as installing software. Take a look here for a more detailed explanation –  Warren Hill May 5 '13 at 11:23
1  
@Alvar: try ls -l /etc/var/dpkg/lock. You will see something like:-rw-r----- 1 root root 0 mei 5 10:43 /var/lib/dpkg/lock. So only root can do it. –  user85164 May 5 '13 at 11:48
1  
I know what sudo means I just wanted @thefourtheye to explain is answer more. Since the OP seemed to be new to Ubuntu... –  Alvar May 5 '13 at 12:01
show 5 more comments

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.