Home > Unable To > Ubuntu Error /var/lib/dpkg/lock

Ubuntu Error /var/lib/dpkg/lock

Contents

AWS EC2 ssh from my ip address which has changed Player claims their wizard character knows everything (from books). In any case, if the process got stuck, you probably don't have a choice but to kill it. share|improve this answer answered Aug 1 '14 at 21:24 jimm-cl 640212 Ok. You decide which version you want. have a peek here

ps -A | grep apt-get or ps -aux | grep 'apt-get' then see if there any process running as apt-get kill that process it by using: sudo kill -9 for Could you move this instead as a comment to the answer it was responding to? –jvriesem May 12 at 21:15 @jvriesem I think this is a very important answer, So let's have a look into /var/lib/dpkg/ folder to confirm is there is really a lock file in there? This! find this

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

UNIX is a registered trademark of The Open Group. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? Tango Icons Tango Desktop Project. So, I thought these were symptoms and changed my data and time manually.

  1. If you remove a lock manually is assumed to break the process flow that creates the lock, so there's no reason to backup it.
  2. How to Install Broadcom Wireless Driver (BCM4313) ...
  3. Do you want to help us debug the posting issues ? < is the place to report it, thanks !
  4. Using DeclareUnicodeCharacter locally (in document, not preamble) How much more than my mortgage should I charge for rent?
  5. share|improve this answer answered May 8 at 1:17 Ray 582217 add a comment| up vote 1 down vote If you have security updates set to auto-install this will happen frequently.
  6. If there is a lock with no apparent process running, this may mean the process got stuck for some reason.

If you see a process listed with apt-get or aptitude, kill that process as it got stuck and did not release the lock. The OP has a problem with installation failing, so I do not think that this would help much. –Alexis Wilke Jul 14 at 18:32 add a comment| up vote 0 down 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 Unable To Lock Directory /var/cache/apt/archives/ When I run terminal and type in sudo apt-get update it runs as if it will update, but then I get this message: W: GPG error: http://packages.medibuntu.org natty InRelease: The following

share|improve this answer edited Nov 20 '14 at 19:27 Seth♦ 23k1991141 answered Feb 7 '12 at 2:22 zurdo 3,56511218 3 ok... Do you want to continue? [Y/n] Y Get:1 http://http.kali.org/kali/ sana/main libamd2.3.1 amd64 1:4.2.1-3 [26.3 kB] . . 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 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 to make Skyscanner, Kiwi, Kayak include ground transfer in the search How much more than my mortgage should I charge for rent? Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Just throwing this out there in case anyone else encounters this issue. Then, all of the above problems were fixed... Hopefully, this helps someone else!

/var/cache/debconf/config.dat Is Locked By Another Process

How do you enforce handwriting standards for homework assignments as a TA? Do check if your disk drives are mounted. Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Browse other questions tagged ubuntu process apt dpkg or ask your own question. Could Not Get Lock /var/lib/dpkg/lock Kali If you need to cancel the dropbox installation, try sudo dpkg --force-remove-reinstreq --remove nautilus-dropbox share|improve this answer edited Jul 15 '14 at 23:15 answered Jul 15 '14 at 14:26 noleti 3,0381522

corrupted. http://centralpedia.com/unable-to/ubuntu-error-unable-to-lock-the-administration-directory.html How do you enforce handwriting standards for homework assignments as a TA? 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 After that, Hot Network Questions Lengthwise or widthwise. E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem.

If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot. Dec 4 '14 at 21:47 11 This crashed my entire server. –에이바 Jan 5 '15 at 21:28 5 Killing apt or dpkg half way through is not a great If you have any problems then post back. http://centralpedia.com/unable-to/ubuntu-apt-get-lock-error.html So let's delete that.

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 6 down Sudo Rm /var/lib/apt/lists/lock By deleting a file used by system, you risk the system integrity. Best way to repair rotted fuel line?

Are MySQL's database files encrypted?

Done [email protected]:~# Booyaa. share|improve this answer answered May 8 at 1:17 Ray 582217 add a comment| up vote 1 down vote If you have security updates set to auto-install this will happen frequently. Don't use sudo unless you know what you are doing. Rm: Cannot Remove ‘/var/lib/apt/lists/lock’: No Such File Or Directory We are so used to rushing into things and not thinking for ourselves.

Why don't miners get boiled to death at 4 km deep? more hot questions about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other Stack If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot. this contact form share|improve this answer answered Oct 21 at 19:59 Joe 927618 add a comment| up vote -1 down vote After running commands told by Kern in his answer, you may try this:

Jul 24 at 20:54 add a comment| up vote 0 down vote It means that software center or another terminal is still running a package operation, force removing it is not When I did that, I got errors like: newline in field name #padding in files like '/var/lib/dpkg/updates/0003'. The cause was the time on my computer was set into the future. (This is because I'm on a Windows+Ubuntu dual boot system and I guess I have messed up local Browse other questions tagged apt dpkg or ask your own question.

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 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 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 Previous Ubuntu - Mounting ISO files with Gmount Next Ubuntu - Numeric Keypad disabled at start-up Subscribe to our newsletter Subscribe Team Terms of Use Contact Policies CCM Benchmark Group health.ccm.net

Related 10Installation Error, “Unable to lock the administration directory”6Cannot open lock file /var/lib/dpkg/lock permission denied--even using sudo4How do I recreate a deleted '/var/lib/dpkg' directory?0Unable to lock administration directory (/var/lib/dpkg/)0lock var lib How to select citizen justices? This will tell you what has got a lock on dpkg. If you see an apt-get process or an aptitude process that looks stuck, you can try kill processnumber and if that doesn't work try kill -9 processnumber This should kill the

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 First try killing any running instance of apt or aptitude as described in Faheem's answer. Solution 1. 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:

I got it by reading many answers to questions like this one. I also am unable to use the update manager or the synaptic package handler. Run again the process then the lock will be created "on-demand". –erm3nda May 28 '15 at 21:10 That file is empty anyway. –Alexis Wilke Jul 14 at 18:27 add