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?
its very easy to fix this error just type following commands in your terminal
sudo rm /var/lib/dpkg/lock
this will delete the “lock” directory in /var/lib/dpkg/