If you are not able to figure which other program is causing this issue and want to get the control back immediately, try the following command to fix the issue of The lock is placed when an apt process is running, and is removed when the process completes. Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Could not get lock /var/cache/apt/archives/lock Done The following extra packages will be installed: python-crypto python-openssl python-pam python-pkg-resources python-pyasn1 python-serial python-twisted-bin python-twisted-conch python-twisted-core python-twisted-lore python-twisted-mail python-twisted-names python-twisted-news python-twisted-runner python-twisted-web python-twisted-words python-zope.interface Suggested have a peek at this web-site
Killing an apt-get or aptitude process is in general much safer. The process locks the apt and if you pause the process (send it in background), it gives you dpkg lock error. Getting error message when integrating a simple piecewise function Four Birds + One Are zipped EXE files harmless for Linux servers? Announcements Fedora 25: On the way of Wayland Follow @unixmen Contact UnixMen EDITOR PICKS How to prevent SSH from disconnecting sessions Linux tutorials APT: Rebuilding Package in Debian Linux tutorials How get redirected here
For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. The female equivalent of "don't break my balls" How do organic chemistry mechanisms become accepted? This problem is quite frequent with me too.
corrupted. /var/cache/debconf/config.dat Is Locked By Another Process Here it is again. Please click the link in the confirmation email to activate your subscription. their explanation Explain it to me like I'm a physics grad: Greenhouse Effect Is it possible to have 3 real numbers that have both their sum and product equal to 1?
Adv Reply December 13th, 2011 #2 Bucky Ball View Profile View Forum Posts Private Message Welcome to Armageddon Join Date Feb 2008 Location Oblivion BeansHidden! E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. You have to close all other and run only one. Unsold Atari videogames dumped in a desert? Running the command then resolved the issue.
Why was the plane going to Dulles? https://itsfoss.com/fix-ubuntu-install-error/ Reply Sudeepto Dutta says February 3, 2014 at 8:13 pm Thanks man. E: Unable To Lock Directory /var/cache/apt/archives/ Reply Abhishek Prakash says September 28, 2014 at 10:53 pm Hmm….. Could Not Get Lock /var/lib/dpkg/lock Kali Why did Sansa refuse to leave with Sandor Cleagane (Hound) during the Battle of Blackwater?
All of this was very strange as I've never seen it before. Check This Out I don't recommend doing that as a first measure; maybe if there is no alternative. Now, when I attempt to run Synaptic, I first get a notification of a broken package. E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/ Solution: If you encounter with the same error, do the following steps. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked
Why wouldn't the part of the Earth facing the Sun a half year before be facing away from it now at noon? Silly, but it might still explain the error for some. add sudo to the beginning of the command. Source You can fix this problem by simply removing all of the temporary list in /var/lib/apt/lists/ and lock file in the cache directory in /var/cache/apt/archives/lock.Ther are various commands to solve this error.
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Dpkg: Error: Dpkg Status Database Is Locked By Another Process share|improve this answer answered Nov 30 '10 at 3:08 poolie 5,96512454 8 Great hint in contrast to the half-dozen replies suggesting to just remove the file ;-) I randomly ran Ciao :) Related PostsFix Cannot Empty Trash In Ubuntu 14.04 [Quick Tip]How To Fix: Failed to fetch cdrom apt-get update cannot be used to add new CD-ROMsHow To Record Your Screen
Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest Followers 12.5K Following 8.8K Tweets 1.5K Copyright ©2016 It's F.O.S.S · Built on Genesis Framework current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to Could you move this instead as a comment to the answer it was responding to? –jvriesem May 12 at 21:15 1 @jvriesem I think this is a very important answer, Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock Oh, cool!
You can force the lock off by removing the file, but it's not recommended without first closing the program that's holding the lock safely, since you could cause corruption or interrupt You can delete the lock file with the following command: sudo rm /var/lib/apt/lists/lock You may also need to delete the lock file in the cache directory sudo rm /var/cache/apt/archives/lock sudo rm For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. http://sinistro.org/unable-to/could-not-get-lock-var-cache-apt-archives-lock.html Would presence of MANPADS ground the entire airline industry?
In any case, if the process got stuck, you probably don't have a choice but to kill it. Subscribed! Reply Tommy says September 29, 2014 at 9:51 am Yes and a more experienced friend helped me. Do check if your disk drives are mounted.
Hope this helps. :) –Hari Apr 6 '13 at 12:23 19 You can use sudo lsof /var/lib/dpkg/lock to find the process that owns the lock file (if empty, assume the I use Ubuntu and believe in sharing knowledge. asked 2 years ago viewed 2527 times active 2 years ago Get the weekly newsletter! These commands should be run in the order presented.
Browse other questions tagged apt or ask your own question. If you are sure there's none, then try doing sudo mv /var/cache/apt/archives/lock /var/cache/apt/archives/lock.backup Now try running pip installation again. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed A published paper stole my unpublished results from a science fair How much effort (and why) should consumers put into protecting their credit card numbers?
I love Nix! –Wayne Phipps Jun 26 '15 at 13:17 3 Note, killall apt-get does the same thing as your ps/kill combo. –Cerin Jan 15 at 22:09 | show 4