E: Could not get lock /var/lib/dpkg/lock - open

 sudo apt-get install git-all
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?

sudo rm /var/lib/dpkg/lock

ok!!!

点赞