cannot remove `/var/lib/dpkg/lock-frontend` permission denied

3.4k views Asked by At

I wanted to install GIT on my Kali-linux

for that I done this apt install git

But it showed an error,

so I tried this...

rm /var/lib/dpkag/lock-frontend then sudo rm /var/lib/dpkg/lock-frontend

It shows that file is removed but still the command is not running...

I retried downloading git but still it shows an error apt install git

2

There are 2 answers

0
Harshit Ruwali On BEST ANSWER

Just try running with sudo command.
Command to run:

sudo apt install git-all

Ref: git official docs.

0
Goutham Rajeev On

Try sudo apt install git. But since u have deleted tht file i fear it may cause problems