root@123:~# sudo apt-get install git
E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
/var/lib/dpkg/lock file and force package reconfiguration.
sudo rm /var/lib/dpkg/lock sudo dpkg --configure -a
It should work after this.