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

Browse other questions tagged linux linux-mint or ask your own question. apt package-management dpkg share|improve this question edited Jul 2 at 10:33 Volker Siegel 6,37122145 asked Nov 30 '10 at 2:12 La Ode Adam Saputra 2,2203108 6 This is also true Running the command then resolved the issue. Hopefully, this helps someone else! this contact form

Hot Network Questions Is there a risk connecting to POP3 or SMTP email server without secure connection? 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 Browse other questions tagged apt package-management dpkg or ask your own question. 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 The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu

Submit it here to become an TecMint author. ubuntu root share|improve this question edited Aug 1 at 6:56 karel 7,10392327 asked Aug 1 at 5:31 hasee 61 1 please anyone help by solving my error. –hasee Aug 1 Beginner's JavaScript calculator Do spacecraft in Star Wars produce jet blasts when taking off? Don't recommend deleting lock file...

Hopefully, this helps someone else! 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 Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable I would appreciate any input I can get, but if I have to I can wipe the partition entirely and reinstall (all of my important data is religiously redundant elsewhere, and

Do progress reports/logging information belong on stderr or stdout? Share + If You Appreciate What We Do Here On TecMint, You Should Consider: Stay Connected to: Twitter | Facebook | Google Plus Subscribe to our email updates: Sign Up Now If you use this carelessly you can end up with a broken system. Thank you very much.

While most or all of this is presented in the other answers, this distills the fix down to a few commands. Sudo Rm /var/lib/apt/lists/lock As ubuntu allows installing software only one at a time, hence the error. 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 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

Could Not Get Lock /var/lib/dpkg/lock Kali

For the error mentioned in the comment: Errors were encountered while processing: /var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Try fixing it by running these commands: sudo apt-get clean https://www.blackmoreops.com/2015/08/17/fixing-e-could-not-get-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-error/ 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 Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu How do I respond when players stray from my prepared material? Unable To Lock Directory /var/cache/apt/archives/ What exactly does the anonymous JavaScript function f => f do?

Can cheese in hand luggage be mistaken for plastic explosive? weblink 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 All of this was very strange as I've never seen it before. What is the difference between perspective distortion and barrel or pincushion distortion? Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked

share|improve this answer edited Jul 21 at 14:16 terdon♦ 44.1k688155 answered Nov 30 '10 at 2:17 Martin Owens -doctormo- 16k34395 5 I was updating my software when I got the I literally wait 30 seconds and it fixes the issue. Once I realized this I just ran apt-get, and it worked. navigate here Are the mountains surrounding Mordor natural?

I think I would have to do like previous unlocking problem, but please tell me the exact keywords for command. Rm: Cannot Remove '/var/lib/apt/lists/lock': No Such File Or Directory If those answers do not fully address your question, please ask a new question. What are these boxes mounted inline on each of the 3 phase wires of a high voltage power line in Miami?

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

I don't recommend doing that as a first measure; maybe if there is no alternative. I am interested to see what has a lock on dpkg. share|improve this answer edited Oct 17 at 17:10 Denja 2501422 answered Apr 22 '14 at 7:41 kushvarma 66838 I am running no other dpkg program :\ –Yelmaaz Apr 22 Ps Aux | Grep Apt this is the error now i am getting –hasee Aug 1 at 6:23 sudo apt-get dist-upgrade I tried above command i got the error as shown bellow Errors were

This will tell you what has got a lock on dpkg. How to make a shell read the whole script before executing it? How can I get an HDR to leave a silhouette? his comment is here If so then close that program, otherwise from the terminal type Code: sudo kill -TERM 15004 to close dpkg gracefully.

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 Where should a galactic capital be? These commands should be run in the order presented. If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot.

For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. All Rights Reserved. Try to run apt-get update, DO NOT DELETE ANYTHING FIRST. –Drt Apr 11 '15 at 6:12 I found this question instead of duplicate, and also this one helped me Use sudo before a command to run the command with root privileges, like this: sudo apt-get install example-package This example command installs a package named example-package.

corrupted. Got a tip?