Steps to remove a dpkg lock, kill the process, then reconfigure dpkg and update apt-get
sudo lsof /var/lib/dpkg/lock sudo kill -TERM <PID> sudo dpkg --configure -a sudo apt-get update && sudo apt-get upgrade