I been getting this problem in terminal now for a day. I have tried fixing read many guides and nothing. I am new to ubuntu any help will be appreciated. "14.04 lts"

E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

also have this data.


If there is only one terminal running apt-get, or no Synaptic and Ubuntu Software Center; You can remove or move the lock file using:

sudo mv /var/cache/apt/archives/lock /var/cache/apt/archives/lock_bak

| improve this answer | |
  • 1
    I used rm instead of mv to delete the lock, rather than rename it, and it worked just as well. – Paulo Raposo Oct 28 '19 at 11:17

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