Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 43568  / 2 Years ago, fri, october 7, 2022, 3:06:12

I'm trying to install git with



apt-get install git


it then says



E: Could not open lock fine /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


How do I get this?


More From » root

 Answers
2

Always do



sudo apt-get <command>


To drop into root,



sudo -i or sudo su (sudo -i is recommended and more proper, but it really doesn't matter)


[#28587] Sunday, October 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odyroc

Total Points: 324
Total Questions: 109
Total Answers: 103

Location: Belize
Member since Mon, Apr 17, 2023
1 Year ago
odyroc questions
;