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 Jason Send a report that this bug log contains spam. Did Donald Trump say that "global warming was a hoax invented by the Chinese"? Newer Post Older Post Home Subscribe to: Post Comments (Atom) About Me Vimal Kumar View my complete profile Followers Search This Blog Popular Posts How to root Android Jelly Bean and this contact form
Below is an example, showing the lock file error in Ubuntu 16.10: [email protected]:~$ sudo apt install neofetch [sudo] password for tecmint: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource Some of that is in comments, but it's incomplete and hard to follow. share|improve this answer answered Mar 31 at 2:43 BluePython 1114 add a comment| up vote 0 down vote In my case I just waited for several minutes and the lock has But to reduce the risk of corrupting an installation, it is better to first close the program that's holding the lock (which in essence is covered by step #2 above). https://ubuntuforums.org/showthread.php?t=1086310
If another process is locking for a valid reason - and you remove that lock file and force an install with what you were doing prior - you could seriously, in What are Iron nuggets and what can they be used for? Acknowledgement sent to Dave Sherohman
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 If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot. If the Ch’in dynasty was so short-lived, why was China named for it? E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. When the process has finished executing, the lock file is then deleted.
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 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? apt-get is now unlocked. –Maxime R. I then used "fuser" as described in earlier posts and apt worked, but I was getting complaints about needing to run dpkg -a -reconfigure.
By deleting a file used by system, you risk the system integrity. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked no update or install thing works. For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. First execute the command below to remove the lock file in the /var/lib/dpkg/ directory: $ sudo rm /var/lib/dpkg/lock Afterwards force package(s) to reconfigure like so: $ sudo dpkg --configure -a Alternatively,
I literally wait 30 seconds and it fixes the issue. The output below is another possible instance of the same error: 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 Unable To Lock The Administration Directory (/var/lib/dpkg/) share|improve this answer edited Dec 31 '13 at 8:16 minerz029 13.3k84583 answered Nov 30 '10 at 4:55 karthick87 30k43145206 9 Deleting the lock file is, what I would consider, a Unable To Lock Directory /var/cache/apt/archives/ FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Council FC Agenda Forum Governance Forum Staff Ubuntu Forums Code of Conduct Forum
Acknowledgement sent to Dave Sherohman
Join the discussion. Would society of simultaneous hermaphrodites have gender roles? someone online told me to try Code: sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a but it doesn't help. navigate here Next story spf13-vim - The Ultimate Distribution for Vim Editor Previous story How to Check Which Apache Modules are Enabled/Loaded in Linux You may also like... 1 Setting Up LAMP (Linux,
Not going to downvote, since it apparently fixed @Rdx's problem, but be warned. –Jonah Nov 5 '13 at 23:14 add a comment| Your Answer draft saved draft discarded Sign up /var/cache/debconf/config.dat Is Locked By Another Process 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 Maybe you upgraded > some of the NFS client/server software?
Depowering a high AC PC without killing the rest of the group Validate Random Die Tippers What are these boxes mounted inline on each of the 3 phase wires of a Last modified: Thu Dec 22 00:38:38 2016; Machine Name: beach Debian Bug tracking system Copyright (C) 1999 Darren O. Message #20 received at [email protected] (full text, mbox, reply): From: Jason Gunthorpe
Extensible code to support different HR rules Does a byte contain 8 bits, or 9? While most or all of this is presented in the other answers, this distills the fix down to a few commands. Why is this 'Proof' by induction not valid? http://popupjammer.com/unable-to/e-unable-to-lock-directory-var-cache-apt-archives.html 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
Voila! Thank YouReplyDeletejobtodayinfo comFebruary 16, 2016 at 9:34 AMVERY USEFUL FOR MEReplyDeleteDivgun SethiJuly 12, 2016 at 7:35 PMapt-get updateAfter all above steps following lines appear,help!0% [Connecting to 192.168.0.3 (192.168.0.3)] [Connecting to 192.168.0.3 If you decide to do it, you can add this text to your question. –Eliah Kagan Jun 6 '12 at 9:10 1 I would suggest one more thing that you 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,
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| 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 Can three +1/+1 counters be considered one +3/+3 counter? If there is a lock with no apparent process running, this may mean the process got stuck for some reason.