I'm currently using Ubuntu XFCE4 and I am trying to install elementary-desktop. Except everytime I try to install it, all it comes up with is,

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?

Could someone please help me with this? Thanks!

marked as duplicate by Pilot6, Mark Kirby, Community Aug 14 '15 at 21:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Enter the command ps aux | grep apt, which will catch all processes containing the word apt.

Remove the process that looks stuck with kill processID, where processID is the first set of numbers that occur after the name of the running process.

If that doesn't work, run kill -9 processID.


Not the answer you're looking for? Browse other questions tagged or ask your own question.