Answers for "e: could not get lock /var/lib/dpkg/lock-frontend. it is held by process 281595 (apt-get)"

1

waiting for cache lock, Could not get lock /var/lib/dpkg/lock-frontend.

sudo lsof /var/lib/dpkg/lock
or 
sudo lsof /var/lib/apt/lists/lock
or
sudo lsof /var/lib/dpkg/lock-frontend
Posted by: Guest on September-07-2021
0

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

#You can delete the lock file with the following command.
sudo rm /var/lib/apt/lists/lock
#You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
Posted by: Guest on June-22-2021

Code answers related to "e: could not get lock /var/lib/dpkg/lock-frontend. it is held by process 281595 (apt-get)"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language