Friday, April 1, 2022

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

Issue

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


Solution

Just try running with sudo command.
Command to run:

sudo apt install git-all

Ref: git official docs.



Answered By - Harshit Ruwali
Answer Checked By - Katrina (WPSolving Volunteer)