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

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

Contents

Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. If you read the newspaper, you're mis-informed. - Mark Twain Thinking about becoming an Ubuntu Member? Why was Susan treated so unkindly? While most or all of this is presented in the other answers, this distills the fix down to a few commands. have a peek at this web-site

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 Duh, the error is: 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? If you have any problems then post back. Search Free Sign Up Login Home Forum How To Download News Encyclopedia High-Tech Health Free Sign Up Language English Español Deutsch Français Italiano Português Nederlands Polski हिंदी Bahasa Indonesia Login Subscribe http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process

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

[email protected]:~# Perfect. Try this command in terminal to find what is running ps -e | grep -e apt -e adept | grep -v grep Note: If that doesn’t print anything, type the following how to solve this issue please help.

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 I'd care to find out some additional informatio... Once I realized this I just ran apt-get, and it worked. Unable To Lock Directory /var/cache/apt/archives/ apt-fast MAY be responsible for not unlocking properly; this happens sometimes when you abort apt-get or dpkg too.

Adv Reply October 12th, 2011 #7 majordread View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Oct 2011 Beans 19 Re: Problem with update- Unable to /var/cache/debconf/config.dat Is Locked By Another Process 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. Before trying any solution that needs a manual modification to the system environment, reboot the system to see if the problem is solved.Vivek Kumar had suggested a fairly reasonable approach above. http://askubuntu.com/questions/498102/how-do-i-unlock-var-lib-dpkg-lock If there is a lock with no apparent process running, this may mean the process got stuck for some reason.

Make sure that you are not running aptitude, synaptic or adept. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked It worked, I was able to update, and my update programs are working normally again. Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] Problem with update- Unable Many thank...

  1. 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
  2. In any case, if the process got stuck, you probably don't have a choice but to kill it.
  3. Thanks for any help.
  4. apt dpkg share|improve this question edited Feb 18 '14 at 20:40 minerz029 13k84480 asked Sep 16 '13 at 7:12 user2782858 61114 marked as duplicate by Kevin Bowen, Alaa Ali, Eric Carvalho,

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

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 find this I had to kill it which left various locks in place. Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Finding if two sets are equal Split python tuple in subtuples with capacity limit in functional programming style Centralizers of regular elements are abelian more hot questions about us tour help Could Not Get Lock /var/lib/dpkg/lock Kali 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

Centralizers of regular elements are abelian Partial sum of the harmonic series between two consecutive fibonacci numbers How to create a custom theme in SXA? Check This Out 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 I have tried to edit the directory, and nothing has worked. Why are only passwords hashed? E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem.

sudo mv /var/lib/dpkg/lock /var/lib/dpkg/lock-backup share|improve this answer edited Sep 9 at 15:46 rany 1076 answered Jul 15 '14 at 18:25 Ade Malsasa Akbar 16710 2 This makes no sense, even Search for processps aux | grep aptThis will catch all running processes that contain apt in their name. 2. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly. http://fullflash.net/unable-to/unable-to-lock-maildrop-error.html Browse other questions tagged apt package-management dpkg or ask your own question.

Why does removing Iceweasel nuke GNOME? Sudo Rm /var/lib/apt/lists/lock Why is the size of my email so much bigger than the size of its attached files? How do you enforce handwriting standards for homework assignments as a TA?

working well.

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). See my edit on my last post on how to add the keys. Split python tuple in subtuples with capacity limit in functional programming style Partial sum of the harmonic series between two consecutive fibonacci numbers Die Liebe höret nimmer auf What to do Rm: Cannot Remove ‘/var/lib/apt/lists/lock’: No Such File Or Directory Tango Icons Tango Desktop Project.

Trick or Treat polyglot What to do when majority of the students do not bother to do peer grading assignment? What object can prove the equations? Do you want to continue? [Y/n] Y Reading changelogs... have a peek here Don't recommend deleting lock file...

So if you try again in a few minutes that should fix it. software-center dpkg dropbox lock share|improve this question edited Jul 15 '14 at 16:24 Parto 6,665164080 asked Jul 15 '14 at 14:24 Alex Kipina 53116 marked as duplicate by karel, user68186, Eric Every polynomial with real coefficients is the sum of cubes of three polynomials Trick or Treat polyglot Why is this Sudoku Skyscraper Failing? Then, all of the above problems were fixed...

How to draw a clock-diagram? once the system boots, it automatically runs sudo apt-get update to search for latest update. :) –kushvarma Apr 22 '14 at 7:51 OKAY,THANKS IT WORKED –Yelmaaz Apr 22 '14 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 What is way to eat rice with hands in front of westerners such that it doesn't appear to be yucky?

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 Search for processesps -A | grep apt-get2. What could an aquatic civilization use to write on/with? Partial sum of the harmonic series between two consecutive fibonacci numbers Why can't the second fundamental theorem of calculus be proved in just two lines?

asked 2 years ago viewed 31343 times active 1 month ago Linked 366 Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? Not the answer you're looking for? 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 I literally wait 30 seconds and it fixes the issue.

Is there a developers image of 16.04 LTS? Insightful comments too! In any case, if the process got stuck, you probably don't have a choice but to kill it. EDIT: Added command.

I get this error: E: Unable to lock the administration directory /var/lib/dpkg/lock? [email protected]:~# apt-get install gimp Reading package lists... Try 2: - try with sudo I tried using sudo to see if this was related with this other error dpkg: warning: ‘ldconfig' not found in PATH or not executable. If so then close that program, otherwise from the terminal type Code: sudo kill -TERM 15004 to close dpkg gracefully.