Jarett Dunn 2,452 views 9:58 Installing packages using apt-get or dpkg command in Debian/ Ubuntu Operating Systems - Duration: 5:57. First try killing any running instance of apt or aptitude as described in Faheem's answer. apt dpkg share|improve this question edited Dec 24 '15 at 1:22 Braiam 40.2k1696158 asked Apr 22 '14 at 7:39 Yelmaaz 111118 marked as duplicate by Radu RÄdeanu, Danatela, Avinash Raj, karel, In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. have a peek at this web-site
What is the purpose of Subject-Verb agreement? asked 2 years ago viewed 18817 times active 1 year ago Related 5I cannot install new packages: “Could not get lock /var/lib/dpkg/lock”1Ubuntu Could not purge package3Weird issue with unmet dependencies when Show more Language: English Content location: United States Restricted Mode: Off History Help Loading... 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
By deleting a file used by system, you risk the system integrity. Working... You decide which version you want.
Kayla Echols 115,628 views 1:03 How to Delete files in Archives folder of ubuntu -Filesystem,var,cache ,apt,archives - Duration: 2:04. up vote 407 down vote favorite 166 I get this error when trying to use apt-get: E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to I used it and apparently it worked, but the Dropbox is still downloading. /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable 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
Why do manufacturers detune engines? Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked asked 6 years ago viewed 1126084 times active today 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 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 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.
How can I fix this?
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 Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Everything was fine once the process finished. E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
asked 2 years ago viewed 210908 times active 2 months ago Linked 407 Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 0 Black screen when logged in Check This Out Search for processesps -A | grep apt-get2. Watch QueueQueueWatch QueueQueue Remove allDisconnect The next video is startingstop Loading... 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). Unable To Lock Directory /var/cache/apt/archives/
Does a byte contain 8 bits, or 9? why do they give the same output? People will be better able to help if you edit the question and add the detail from the comments (and do it in an organized way). –fixer1234 Aug 1 at 6:26 Source Sign in Share More Report Need to report the video?
Solution 1. Sudo Rm /var/lib/apt/lists/lock User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. apt-fast MAY be responsible for not unlocking properly; this happens sometimes when you abort apt-get or dpkg too.
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. 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 correct one. –Anwar Apr 6 '13 at 14:37 6 @AnwarShah no, there are other considerations before going around removing files of the system. –Braiam Dec 31 '13 at 14:47 10 Rm: Cannot Remove '/var/lib/apt/lists/lock': No Such File Or Directory 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
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 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 Sweet Linux, Sweet Computing How to fix E: Could not get lock /var/lib/apt/lists/lock problem You got following message when you try to run apt-get update command in Ubuntu? http://sinistro.org/unable-to/could-not-get-lock-var-lib-dpkg-lock-open-11-resource.html Interesting, because I am the only user (I just installed the system) and there's no other process using dpkg.
apt-get is now unlocked. –Maxime R. 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 Not the answer you're looking for? If they are not, you may not be able to acquire the lock as the package installer will not be able to access the filesystem.
Sign in Transcript Statistics 4,465 views 21 Like this video? How to replace not found reference "??" in an another constant e.g "REF"? Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Out of interest do you have synaptic package manager, update manager or software center running ?
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 If the above does not work for you, then you may want to take a look at this: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? Would you like to answer one of these unanswered questions instead? I then used "fuser" as described in earlier posts and apt worked, but I was getting complaints about needing to run dpkg -a -reconfigure.
I had to kill it which left various locks in place. If you have any problems then post back. If you still get a lock error, run this command to show details about the locking process. How should night time be determined and logged in a fast westbound plane?
Open a terminal and type Code: sudo lsof /var/lib/dpkg/lock Enter your password. share|improve this answer answered Aug 1 '14 at 21:24 jimm-cl 660212 Ok. If you still get a lock error, close the Ubuntu Software Center (Ubuntu 14.04) or Software application (Ubuntu 16.04) and the terminal to unlock /var/lib/dpkg/, reopen the terminal and try the UNIX is a registered trademark of The Open Group.