Actually if we suspend any application installing in middle or suspending updates then automatically while resuming we will get some problems like
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
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?
I know how to solve these things by removing lock . but i want to know why there is going to be a lock while performing updates/installation .