dpkg: error: dpkg frontend lock was locked by another process with pid 4368
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
dpkg: error: dpkg frontend lock was locked by another process with pid 4368
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
dpkg: error: dpkg frontend lock is locked by another process
First, find out the id of the process that is holding the lock file:
lsof /var/lib/dpkg/lock-frontend
The above command will give you the PID of the processes using the lock files. Use this PID to kill the process:
sudo kill -9 PID
Now you can remove the lock and reconfigure dpkg:
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
why upgrade ubuntu then frequently shows this message "It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend.
It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us