1. Error : Could not get lock /var/lib/dpkg/lock

Tip : 

Run :

</p><p>sudo lsof /var/lib/dpkg/lock</p><p>

Identify the PID of the process causing my dpkg to lock.

Kill it

<br />sudo kill -TERM &lt;PID&gt;</p><p>

Configure it.

<br />sudo dpkg --configure -a</p><p>

Do the regular apt-get

</p><p>sudo apt-get update &amp;&amp; sudo apt-get upgrade</p><p>

Advertisements