Posts

Showing posts with the label frontend lock

Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied). Error while trying to use apt package manager in ubuntu

Error E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? Solution dpkg is the package manager for debian systems. When you try to use apt(Advanced Packaging Tool) for tasks like "apt install xxx" or "apt upgrade xxx" or "apt update xxx" etc. ("xxx" here stands for the package name). I have observed the above error in two scenarios. 1) Another package operation using apt is in progress, may be from a different terminal. In this case you have to wait for the already executing package operation to complete and then then re-execute the apt command. Else if you want to kill the running process of dpkg, prior to executing the present command, you may do so with following $> sudo killall dpkg $> sudo rm /var/lib/dpkg/lock 2) You need root privileges. This question is asked along with the error its...