Home > Unable To > Apt-get Update Could Not Get Lock /var/lib/apt/lists/lock

Apt-get Update Could Not Get Lock /var/lib/apt/lists/lock

Contents

Mobile media converter Install HP LaserJet P1108 printer in Ubuntu 12.04 Install Drupal on Ubuntu 12.04 To know wireless card information in your laptop? ► September (1) ► August (3) ► sudo fuser -vki /var/lib/dpkg/lock sudo fuser -vki /var/cache/apt/archives/lock sudo fuser -vki /var/cache/debconf/config.dat sudo dpkg --configure -a Use for unlocking the package system after an update of some kind crashed or terminated Is すごく怖 bad, or good? Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Source

ps aux | grep apt or ps aux | grep dpkg. –Faheem Mitha Aug 1 '14 at 21:04 add a comment| 1 Answer 1 active oldest votes up vote 7 down Transcript The interactive transcript could not be loaded. UNIX is a registered trademark of The Open Group. 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...

Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked

The programs that can do this are: The Software Center The Update Manager The apt link installer (I think this now goes through SC) The apt-get or aptitude command line utilities. I got it by reading many answers to questions like this one. Why do manufacturers detune engines? Hot Network Questions How much effort (and why) should consumers put into protecting their credit card numbers?

If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot. Don't be so fast in removing anything before trying other solutions. Powered by Blogger. Unable To Lock Directory /var/cache/apt/archives/ 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

Privacy PolicyContact us: contact (at) theeighthnetwork (dot) comFOLLOW US © Copyright 2015 - Newspaper 6 by TagDiv Source DigitLatest Technology, Gadgets & Gizmos HomeHow ToUbuntuAndroidBloggingWindowsWordPress+MoreCloud ComputingGadgetsSocial MediaTechnologyHow to Fix "E: Could Once I realized this I just ran apt-get, and it worked. Watch QueueQueueWatch QueueQueue Remove allDisconnect The next video is startingstop Loading... How can I tell whether a generator was just-started?

So you only have to wait for this process to be completed. Rm Cannot Remove Var Lib Apt Lists Lock No Such File Or Directory Sign in 22 0 Don't like this video? Is it possible to see animals from space? If those answers do not fully address your question, please ask a new question. 1 @Mitch With the note that it is about /var/lib/apt/lists/lock rather than /var/lib/dpkg/lock. –gertvdijk Aug 22

Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu

Law case title convention: Why sometimes not "Plaintiff v.

It might be better to find out which process has the lock and kill that process. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Saju M 1 viewNew 3:58 No se pudo bloquear /var/lib/dpkg/lock - Duration: 2:12. Ps Aux | Grep Apt Crazy 8s Code Golf Who were the red-robed citizens of Jedha City?

How to Install Broadcom Wireless Driver (BCM4313) ... this contact form These commands should be run in the order presented. The other answers bring up very good points about making sure no updates are currently running before doing anything drastic like removing lock files. Killing an apt-get or aptitude process is in general much safer. Could Not Get Lock /var/lib/dpkg/lock Kali

Tae Grado 722 views 9:29 How To Fix "var/lib/dpkg..." Cydia Error Message #1 - Duration: 3:02. Browse other questions tagged ubuntu process apt dpkg or ask your own question. Why did Tarkin undertake this course of action at the end of Rogue One? have a peek here Turns out that there was a background process in the Ubuntu Software Center that was waiting for me to manually install some updates. –jvriesem May 12 at 21:16 add a comment|

However, once you are sure that's not the case, the following usually works for me. /var/cache/debconf/config.dat Is Locked By Another Process It is your Gate to the the world of Linux/Unix and Opensource in General. I think I would have to do like previous unlocking problem, but please tell me the exact keywords for command.

About Press Copyright Creators Advertise Developers +YouTube Terms Privacy Policy & Safety Send feedback Test new features Loading...

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. 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, In terminal ic an see the problem as: Fetched 19.8 MB in 1min 48s (183 kB/s) E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the Rm: Cannot Remove ‘/var/cache/apt/archives/lock’: No Such File Or Directory Watch Queue Queue __count__/__total__ Find out whyClose How to fix E: Could not get lock /var/lib/apt/lists/lock - open Resource temporarily unavailable Saju M SubscribeSubscribedUnsubscribe636636 Loading...

The difference between 'ping' and 'wget' in relation to hostname resolution How can I tell whether a generator was just-started? Sign in to report inappropriate content. share|improve this answer edited Dec 31 '13 at 8:16 minerz029 13.4k84583 answered Nov 30 '10 at 4:55 karthick87 30k43145206 9 Deleting the lock file is, what I would consider, a http://jessriegel.com/unable-to/he-could-not-get-lock-var-lib-apt-lists-lock.html It works by changing the ps COMMAND listing for grep into grep [t]mux, which does not match the regex [t]mux .

Not the answer you're looking for? Interesting, because I am the only user (I just installed the system) and there's no other process using dpkg. E.g. 12.04 LTS and 14.04 LTS.DeleteReplyjeevan reddy mandaliDecember 11, 2014 at 8:49 PMawesome this single command saved my 2days headache!boom!ReplyDeleteAjay KumarJanuary 22, 2015 at 1:20 PMsudo rm /var/lib/dpkg/lock Resolved error using Output the sign What's the difference between ls and la?

Ask Ubuntu works best with JavaScript enabled FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Council FC Agenda Forum Governance Forum Adv Reply September 3rd, 2013 #7 Ashiq_Irphan View Profile View Forum Posts Private Message Spilled the Beans Join Date Sep 2013 Location Chennai, India Beans 15 DistroUbuntu 12.04 Precise Pangolin iPeris 21,272 views 3:02 how fix could not get lock /var /lib// apt/ lists/ lock/ problem ubuntu - Duration: 1:19. apt-fast MAY be responsible for not unlocking properly; this happens sometimes when you abort apt-get or dpkg too.

The lock is placed when an apt process is running, and is removed when the process completes. See if there is any process running as apt-get then kill that process sudo kill -9 ReplyDeleteRepliesVimal KumarMay 17, 2015 at 10:13 PMThanks Vivek.Delete°°°°°°°°°°°°°°°°°°September 10, 2015 at 12:08 AMthank youDeleteReplySREESANKAR .RSeptember Fix could not get lock error in ubuntu - "E: Could not get lock /var/lib/apt/lists/lock" or "E: Could not get lock /var/lib/dpkg/lock" problem. bloger bobo 33,750 views 4:34 How to Fix Error processing teamviewer dependency problems leaving unconfigured - Duration: 3:58.

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 I tried to remove Dropbox via Ubuntu Software Center and the software center show me this: Waiting to dpkg to exit. Four Birds + One "Shields at 10% one more hit and..." What? Adv Reply September 15th, 2013 #10 ibjsb4 View Profile View Forum Posts Ubuntu addict and loving it Join Date Sep 2012 Beans 5,003 Re: Could not get lock /var/lib/apt/lists/lock -

corrupted. What are these boxes mounted inline on each of the 3 phase wires of a high voltage power line in Miami? If you're facing the same error without 'Update Manager' running you have to remove it from /var/lib/dgkg/lock, which definitely you can't do it manually sudo fuser -cuk /var/lib/dpkg/lock sudo rm -f This was pretty annoying as it stops you from installing updates or new softwares.

Loading... Otherwise you can kill it using kill After making sure there is no process or killing it, you can just