Home > Unable To > Sudo Apt-get Update Unable To Lock Directory /var/lib/apt/lists

Sudo Apt-get Update Unable To Lock Directory /var/lib/apt/lists


The previous program that I tried to install is Dropbox. more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Solution: Open terminal and run this command: $ sudo fuser -vki /var/lib/apt/lists/lock And now re-run your command, everything should work as expected. First try killing any running instance of apt or aptitude as described in Faheem's answer.

Search for text in a file, then rename the file with that text Alias are not coming from language specific item version Should I find punctures by immersing inner tube in asked 2 years ago viewed 18800 times active 1 year ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title? User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Transcript The interactive transcript could not be loaded.

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

Loading... Explain it to me like I'm a physics grad: Global Warming Full disk problem on Ubuntu 16.04 (Xenial Xerus) How do I generate a time series in PostgreSQL? I tried to remove Dropbox via Ubuntu Software Center and the software center show me this: Waiting to dpkg to exit. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 16 Thread: sudo apt-get update (Unable To Lock The List Directory)?

share|improve this answer edited Jul 21 at 14:16 terdon♦ 44.2k688155 answered Nov 30 '10 at 2:17 Martin Owens -doctormo- 16k34395 5 I was updating my software when I got the Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Quick Notepad Tutorial 315 views 1:16 Ubuntu Server apt-get update error SOLVED - Duration: 4:34. E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. It cover most popular distros like Ubuntu, LinuxMint, Fedora, Centos.

December 19, 2016 Disable touchscreen in LinuxOctober 26, 2016Browse anonymously in Kali Linux with AnonsurfOctober 17, 2016Building updated Kali Linux ISOAugust 9, 2016 Popular Categories Kali Linux Security Linux Desktop Managers Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked try this: sudo rm /var/lib/apt/lists/lock that worked for me. Thanks for any help. original site 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

Join Date Feb 2009 Beans 47 Re: sudo apt-get update (Unable To Lock The List Directory)? /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable The lock is placed when an apt process is running, and is removed when the process completes. For all standard (non-LTS) releases, the maximum duration of support is 18 months.Both versions have pros and cons - LTS gets long term support and standard gets latest features. Adv Reply November 26th, 2010 #5 Soul-Sing View Profile View Forum Posts Chocolate-Covered Ubuntu Beans Join Date Aug 2006 Beans 1,374 DistroUbuntu 13.04 Raring Ringtail Re: sudo apt-get update (Unable

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

What change in history would I have to make to stop Christmas from happening? UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu I didn't try removing the lock file, though, since that can cause problems with the system. Could Not Get Lock /var/lib/dpkg/lock Kali Should I find punctures by immersing inner tube in water or hearing brezze or feeling breeze or how else?

Browse other questions tagged apt dpkg or ask your own question. It might be better to find out which process has the lock and kill that process. In any case, if the process got stuck, you probably don't have a choice but to kill it. If you see a process listed with apt-get or aptitude, kill that process as it got stuck and did not release the lock. Unable To Lock Directory /var/cache/apt/archives/

So you only have to wait for this process to be completed. do it with sudo kill Process-id is the process number that you identified from step 1.If that doesn't work, then try (like Vivek suggested)kill -9 Also, note that it is not The most notable symptom is perhaps the date/time of the lock file being the exact date/time that you are trying to run the command. Search for processesps -A | grep apt-get2.

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 Rm Cannot Remove Var Lib Apt Lists Lock No Such File Or Directory anything else maybe? Linked 22 How can I solve Unable to lock the administration directory (/var/lib/dpkg/) 19 Could not get lock /var/lib/apt/lists/lock 15 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily

apt-fast MAY be responsible for not unlocking properly; this happens sometimes when you abort apt-get or dpkg too.

A for loop that appears to be practically infinite What change in history would I have to make to stop Christmas from happening? Interview question "How long will you stay with us?" If the Ch’in dynasty was so short-lived, why was China named for it? Join Date Feb 2008 Location Missouri, USA Beans 302 DistroLubuntu Re: sudo apt-get update (Unable To Lock The List Directory)? Ps Aux | Grep Apt doesnt work gives same message Adv Reply February 14th, 2011 #9 evil_iggy View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Aug 2009 Beans 5 Re:

I have definitely tried rebooting and a new session still a problem. I have 6 systems with a mix of both... :PReplyDeleteEmmanuel OlukaNovember 11, 2015 at 4:42 PMYou can delete the lock file with the following command:sudo rm /var/lib/apt/lists/locksudo rm /var/cache/apt/archives/locksudo apt-get updateReplyDeleteUnknownDecember Don't use rm -f (for that matter rm command in general) if you don't know what you are doing.Hope this helps!ReplyDeleteUnknownOctober 20, 2015 at 1:19 PMUbuntu 13.04 is also a stable Clever. –here Apr 17 '14 at 18:03 add a comment| Not the answer you're looking for?

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 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 (3) So if you try again in a few minutes that should fix it. Advertisement Autoplay When autoplay is enabled, a suggested video will automatically play next.

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. 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 Be informed that this approach may even crash your system(but will reboot releasing the lock), this has never been my choice. When hiking, why is the right of way given to people going up?

However, once you are sure that's not the case, the following usually works for me. Theorems demoted back to conjectures A for loop that appears to be practically infinite Has Darth Vader ever been exposed to the vacuum of space? Join Date Feb 2009 Beans 47 Re: sudo apt-get update (Unable To Lock The List Directory)? Show more Language: English Content location: United States Restricted Mode: Off History Help Loading...

First try to find out which application it is by using this command in the terminal ps aux | grep '[a]pt' If there is a process running using apt (like apt-get Do progress reports/logging information belong on stderr or stdout? Vagiigav 1 11,150 views 11:01 How to Delete files in Archives folder of ubuntu -Filesystem,var,cache ,apt,archives - Duration: 2:04.