Home > Unable To > Debian Could Not Get Lock /var/cache/apt/archives/lock - Open

Debian Could Not Get Lock /var/cache/apt/archives/lock - Open

Contents

share|improve this answer edited Nov 5 at 8:36 Younghyo Kim 33 answered Feb 7 '12 at 2:22 zurdo 3,87511318 4 ok... 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 Upload Logfile via WebGUI/CLI #openmediavault on freenode IRC | German & English | GMT+1 Absolutely no Support via PM! Does a byte contain 8 bits, or 9? this contact form

Why did it take longer to go to Rivendell in The Hobbit than in The Fellowship of the Ring? Done Building dependency tree        Reading state information... If it doesn't work or something goes wrong, do: sudo mv /var/cache/apt/archives/lock.backup /var/cache/apt/archives/lock and comment here. What are these boxes mounted inline on each of the 3 phase wires of a high voltage power line in Miami? find more info

E: Unable To Lock Directory /var/cache/apt/archives/

Why did Sansa refuse to leave with Sandor Cleagane (Hound) during the Battle of Blackwater? asked 6 years ago viewed 14796 times active 5 years ago Linked 7 Debian/Ubuntu is it possible to reinitialize /var/lib/apt/lists and /var/apt/cache after deleting them? share|improve this answer answered Jun 11 '12 at 21:47 izx 93.8k22220264 add a comment| up vote 1 down vote I don't see this answer anywhere above but on Ubuntu 16.04, I If there is a lock with no apparent process running, this may mean the process got stuck for some reason.

I don't recommend doing that as a first measure; maybe if there is no alternative. What to do when using your private key from another computer? I googled a bit and found the solution after spending almost an hour. Rm: Cannot Remove '/var/cache/apt/archives/lock': No Such File Or Directory I hope this quick tip helps in solving this common update error in Ubuntu.

Could aliens colonize Earth without realizing humans are people too? vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. Period. –Jay Sullivan Nov 18 '14 at 3:36 2 for me, this resulted in an error dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the https://ubuntuforums.org/showthread.php?t=1894744 Here's a run down of the issues: "E: Could not get lock /var/lib/dpkg/lock" error This happens when I tried to use apt-get update
Archives Archives Select Month December 2016 (4)

No, register now. E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. Voila! when running sudo apt-get dist-upgrade again. asked 2 years ago viewed 2527 times active 2 years ago Related 0pip failed to install psycopg2.

/var/cache/debconf/config.dat Is Locked By Another Process

When I attempt to reinstall or remove the partially installed Mint-Meta-Gnome-DVD, I get the following message: E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to http://stackoverflow.com/questions/24068293/e-could-not-get-lock-var-cache-apt-archives-lock-open-11-resource-temporar [email protected]:~$ sudo apt-get -f install Reading package lists... E: Unable To Lock Directory /var/cache/apt/archives/ Do you want to continue [Y/n]? Could Not Get Lock /var/lib/dpkg/lock Kali 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

Solution: The first and foremost thing is to do nothing. weblink Followers 12.5K Following 8.8K Tweets 1.5K Copyright ©2016 It's F.O.S.S · Built on Genesis Framework current community blog chat Server Fault Meta Server Fault your communities Sign up or log in more hot questions about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other Stack I think I would have to do like previous unlocking problem, but please tell me the exact keywords for command. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked

br Tommy Reply Tommy says September 17, 2014 at 11:43 pm Was the picture lost? Done The following packages were automatically installed and are no longer required: apg geoclue-ubuntu-geoip gnome-online-accounts gnome-control-center-data Use 'apt-get autoremove' to remove them. First try killing any running instance of apt or aptitude as described in Faheem's answer. navigate here I knew there was a problem with the date/time when I logged in, but was ignoring it. (Previously, it was setting it automatically via the Internet and NTP).

READ ME: Upgrading to a new Major Version of OpenMediaVault Greetings David "Well... Dpkg: Error: Dpkg Status Database Is Locked By Another Process Done Reading package lists... I use Ubuntu and believe in sharing knowledge.

The time now is 10:30 AM.

share|improve this answer answered Jan 29 '12 at 11:27 Bruno Pereira 49.8k20154187 these commands helped, but now when I tried to install again, got this reply : Could not add a comment| 1 Answer 1 active oldest votes up vote 16 down vote If there is only one terminal running apt-get, or no Synaptic and Ubuntu Software Center; You can Adv Reply December 13th, 2011 #5 drmrgd View Profile View Forum Posts Private Message Tall Caf Ubuntu Join Date Apr 2011 Location Maryland Beans 1,461 DistroKubuntu 12.04 Precise Pangolin Re: Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root If you would like to use all features of this site, it is mandatory to enable JavaScript.

I'm an absolute beginner. –kern Jan 29 '12 at 11:38 sudo - execute command as root, rm - remove file. share|improve this answer answered May 8 at 1:17 Ray 582317 add a comment| up vote 1 down vote If you have security updates set to auto-install this will happen frequently. Huge fan of Agatha Christie work. his comment is here Why did Tarkin undertake this course of action at the end of Rogue One?

I'm not sure if you tried it or not, but a simple reboot may fix this. For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. Cancel reply Search this website A Must Read For Ubuntu 14.04 Users Subscribe to Weekly Newsletter Free eBook for Download Latest on It's FOSS Raspberry Pi's Pixel OS Is Now Available Why did it take longer to go to Rivendell in The Hobbit than in The Fellowship of the Ring?

I'd love to know if there is an easier way, though. Otherwise this is a sign that something else is installing or removing software and has locked the apt database while it performs the actions. Get out of the transit airport at Schengen area and the counting of Schengen period How to find punctures in inner tubes? What does the author want to convey by ending his letter with »Tschüssikowsky«?

However, this is a new install of 16.04 on a dual-booted system, and the lock issue persisted since startup. –user1362215 Nov 28 at 16:31 add a comment| protected by Community♦ Apr Done Building dependency tree Reading state information... Where should a galactic capital be? Here it is again.

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 How To Solve Error: "E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/" On Debian 7 By SK Share on Facebook Tweet Effective posting, WirelessInfo Script, Using [code] tags, Boot Repair* Please search for 'Ubuntu ' before starting a thread * How to mark threads 'Solved' Adv Reply December 13th, 2011 Is there some way to do a apt-get rebuild-var-tree or similar?

I literally wait 30 seconds and it fixes the issue. I used the System Monitor to confirm it was still running and not stuck.