-2

whenever i type apt-get install git then it show error... error displayed by terminal is

 yogesh@yogesh-dell:~$ apt-get install git
    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?
Pilot6
  • 92,041

1 Answers1

2

The error messages tells you exactly what is wrong: E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?.

Either use the Software Center, or the sudo command. Read man sudo, then try:

sudo apt-get install git  
waltinator
  • 37,856