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?
After searching above message, I found a command
sudo lsof /var/lib/dpkg/lock
after pressing ENTER, it might asked you for password. Type the password and in result you might get following output
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 1468 root 5uW REG 8,1 0 154817 /var/lib/dpkg/lock
Type following command to kill the session with provided PID by your system. In my case PID # was 1468. I use following comman…