Home > Unable To > E Could Not Get Lock /var/lib/apt/lists/lock

E Could Not Get Lock /var/lib/apt/lists/lock

Contents

Defendant"? 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 Tango Icons Tango Desktop Project. For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. his comment is here

Taken from: http://askubuntu.com/a/15469/68707 share|improve this answer edited Jun 7 '12 at 10:04 Yi Jiang 91611227 answered Jun 6 '12 at 7:17 Nabeel Ahmed 28534 1 This was the problem in Why is the electric field due to a charged infinite cylinder identical to that produced by an infinite line of charge? This should be done only if everything else fails... 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 http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process

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

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: share|improve this answer edited Apr 6 '14 at 21:14 answered Oct 4 '13 at 12:39 Batsu 1593 I had this right after installing Ubuntu 16.04. Could aliens colonize Earth without realizing humans are people too?

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 Why did Tarkin undertake this course of action at the end of Rogue One? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. Düşüncelerinizi paylaşmak için oturum açın.

Who were the red-robed citizens of Jedha City? Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Saturday , December 24 2016 Home How to Denial-of-Service Attack (DoS) Hacking Linux Administration VirtualBox Virtual Private Network (VPN) Wireless LAN (Wi-Fi) Popular Categories Kali Linux Security Linux Desktop Managers AMD I think I would have to do like previous unlocking problem, but please tell me the exact keywords for command. http://askubuntu.com/questions/452638/how-can-i-solve-unable-to-lock-the-administration-directory-var-lib-dpkg Maybe try sudo rm /var/cache/apt/archives/lock –kubahaha Sep 24 '12 at 13:56 This is not a good suggestion: blindly removing the luck may corrupt dpkg's state. –poolie Feb 2 '15

If it's not suitable try this askubuntu.com/a/315791/378845 before you remove locks –Menuka Ishan Oct 23 at 7:03 add a comment| up vote 9 down vote This will happen if you have Ps Aux | Grep Apt How can I turn rolled oats into flour without a food processor? Is this behaviour of GPIO pins normal? 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

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

I then used "fuser" as described in earlier posts and apt worked, but I was getting complaints about needing to run dpkg -a -reconfigure.

GameObject with Audio File called with FindGameObjectWithTag returns "Object reference not set to an instance of an object" Who is this six-armed blonde female character? Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Home How to Denial-of-Service Attack (DoS) Hacking Linux Administration VirtualBox Virtual Private Network (VPN) Wireless LAN (Wi-Fi) How to add RBL on Zimbra Server? Could Not Get Lock /var/lib/dpkg/lock Kali If you try ps aux | grep apt that will catch processes containing the word apt, at least.

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 this content share|improve this answer edited Feb 13 at 14:04 answered Jul 3 '13 at 9:01 Faheem Mitha 2,6541810 1 Also, I would kill dpkg. Attached Images Screenshot from 2013-09-15 17:35:11.png (29.6 KB, 6 views) Last edited by kinetonat; September 15th, 2013 at 06:52 PM. To add to his solution, 1. Unable To Lock Directory /var/cache/apt/archives/

Search for processps aux | grep aptThis will catch all running processes that contain apt in their name. 2. 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 Let us see how to fix this problem.For a better understanding here are the message that you encounter when you try to run apt-get update command in Ubuntu:E: Could not get weblink Why did Sansa refuse to leave with Sandor Cleagane (Hound) during the Battle of Blackwater?

Silly, but it might still explain the error for some. /var/cache/debconf/config.dat Is Locked By Another Process 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| Why is the electric field due to a charged infinite cylinder identical to that produced by an infinite line of charge?

User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License.

How would people living in eternal day learn that stars exist? Quick Notepad Tutorial 315 görüntüleme 1:16 حل مشكلة "E: Could not get lock /var/lib/dpkg/lock" على ubuntu/elementary os/linux mint - Süre: 7:25. عمر ويب 11.150 görüntüleme 7:25 Ubuntu Server apt-get update error Nguyen Ngoc 1.441 görüntüleme 1:16 How To Fix "var/lib/dpkg..." Cydia Error Message - Without Having iFile And Terminal #2 - Süre: 8:49. Rm Cannot Remove Var Lib Apt Lists Lock No Such File Or Directory Be informed that this approach may even crash your system(but will reboot releasing the lock), this has never been my choice.

I used it and apparently it worked, but the Dropbox is still downloading. Killing an apt or aptitude process is harmless unless it is actually in the middle of package installation. 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 check over here Defendant"?

I'm an absolute beginner. –kern Jan 29 '12 at 11:38 sudo - execute command as root, rm - remove file. The command provided by João should close the program that holds the lock and then remove the lock but won't protect you from install interruption: sudo fuser -cuk /var/lib/dpkg/lock; sudo rm This worked for me, as it was trying to finish something it stared before the machine was stopped previously, and couldn't figure it out on his own. –morynicz Sep 14 '13 Düşüncelerinizi paylaşmak için oturum açın.

If you use this carelessly you can end up with a broken system.