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.

/var/lock
/var/cache/apt-xapian-index/index.1/flintlock
/var/cache/software-center/xapian/flintlock
/var/lib/alsa/asound.state.lock
/var/lib/apt-xapian-index/update-lock
/var/lib/dpkg/lock
/var/lib/dpkg/info/libfile-fcntllock-perl.list
/var/lib/dpkg/info/libfile-fcntllock-perl.md5sums
/var/lib/dpkg/info/liblockfile-bin.list
/var/lib/dpkg/info/liblockfile-bin.md5sums
/var/lib/dpkg/info/liblockfile1:i386.list
/var/lib/dpkg/info/liblockfile1:i386.md5sums
/var/lib/dpkg/info/liblockfile1:i386.postinst
/var/lib/dpkg/info/liblockfile1:i386.postrm
/var/lib/dpkg/info/liblockfile1:i386.shlibs
/var/lib/dpkg/info/lockfile-progs.list
/var/lib/dpkg/info/lockfile-progs.md5sums
/var/lib/dpkg/info/python-lockfile.list
/var/lib/dpkg/info/python-lockfile.md5sums
/var/lib/dpkg/info/python-lockfile.postinst
/var/lib/dpkg/info/python-lockfile.prerm

marked as duplicate by Eliah Kagan, g_p, devWeek, Sylvain Pineau, Eric Carvalho Oct 7 '14 at 10:48

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.

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

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

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