Home > Unable To > Linux Mint Could Not Get Lock /var/lib/apt/lists/lock

Linux Mint Could Not Get Lock /var/lib/apt/lists/lock


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 Were defendants at the Nuremberg trial allowed to deny the holocaust? 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 should I do? check over here

Close the program and run it again it should work.You may either have synaptic open, or have another terminal window open running apt-get, or have the update manager running.Check it and WinAndLinuxTutorials 46,324 views 2:53 How To Fix "var/lib/dpkg..." Cydia Error Message - Without Having iFile And Terminal #2 - Duration: 8:49. share|improve this answer answered Nov 30 '10 at 3:08 poolie 5,96512454 8 Great hint in contrast to the half-dozen replies suggesting to just remove the file ;-) I randomly ran If this is the case just wait few seconds or launch Update Manager to check the status. http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process

Sudo Rm /var/cache/apt/archives/lock

A Page of Puzzling Validate Random Die Tippers Fields that can be ordered in more than one way Has my macOS Sierra system been infected by unknown users? Browse other questions tagged apt package-management dpkg or ask your own question. Hopefully, this helps someone else! What's the correct term to describe baby food?

Saju M 1 viewNew 3:58 How to fix Cydia Error: Wow, you exceeded the number of package names this APT is capable of - Duration: 1:03. vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd. Loading... Ps Aux | Grep Apt It cover most popular distros like Ubuntu, LinuxMint, Fedora, Centos.

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. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Why does remote Bash source .bash_profile instead of .bashrc The female equivalent of "don't break my balls" be killed in the war vs be killed by the war Unsold Atari videogames share|improve this answer edited Nov 5 at 8:36 Younghyo Kim 33 answered Feb 7 '12 at 2:22 zurdo 3,87511318 4 ok... share|improve this answer answered Sep 24 at 11:19 Pavel Vlasov 15317 add a comment| up vote 0 down vote I have had this issue numerous times.

Share to: NextNewer Post PreviousOlder Post Post a Comment upubuntu 218168578325095 Subscribe to: Post Comments (Atom) Subscribe Now ! Unable To Lock Directory /var/cache/apt/archives/ Who were the red-robed citizens of Jedha City? Otherwise you can kill it using kill After making sure there is no process or killing it, you can just Would you like to answer one of these unanswered questions instead?

Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked

This site serves Ads by third party which uses cookies and serve ads based on user browsing patterns. http://www.upubuntu.com/2011/10/how-to-fix-this-error-e-could-not-get.html You decide which version you want. Sudo Rm /var/cache/apt/archives/lock Mobile media converter Install HP LaserJet P1108 printer in Ubuntu 12.04 Install Drupal on Ubuntu 12.04 To know wireless card information in your laptop? ► September (1) ► August (3) ► Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu 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

KraykenTheSlasher 4,431 views 0:23 E:unable to locate package sur ubuntu 14 04 (Solution) - Duration: 1:56. check my blog To add to his solution, 1. Did Donald Trump say that "global warming was a hoax invented by the Chinese"? CLOSE Home Linux distributions Linux tutorials News Frequently Asked Questions Opensource Unix Ask/unixmen Saturday, December 24, 2016About Us Advertising on Unixmen Become a Contributor Unixmen collaborated with Unixstickers Contact Us Home Could Not Get Lock /var/lib/dpkg/lock Kali

Powered by Blogger. Just throwing this out there in case anyone else encounters this issue. For details and our forum data attribution, retention and privacy policy, see here About Contact Privacy twitter facebook google rss pinterest Ubuntu/Linux Blog | Up Ubuntu Home Home » Tips » this content 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

Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. /var/cache/debconf/config.dat Is Locked By Another Process share|improve this answer edited Jul 21 at 14:16 terdon♦ 44.3k688155 answered Nov 30 '10 at 2:17 Martin Owens -doctormo- 16k34395 5 I was updating my software when I got the Probably you run 2 instances of program or you have synaptic or some another package manager. –2707974 Apr 22 '14 at 7:41 @Parto Thanks it is solved :D –Yelmaaz

Is scroll within a card good or bad? (In desktop) When hiking, why is the right of way given to people going up?

Rating is available when the video has been rented. Adv Reply September 3rd, 2013 #7 Ashiq_Irphan View Profile View Forum Posts Private Message Spilled the Beans Join Date Sep 2013 Location Chennai, India Beans 15 DistroUbuntu 12.04 Precise Pangolin 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 Rm Cannot Remove Var Lib Apt Lists Lock No Such File Or Directory Source: ubuntuforums.org If you like this post, take a minute to share it...TweetShare on TumblrPocketEmailPrint Related Tags: tips Next story Use Open File Dialog using Macro in LibreOffice/OpenOffice Previous story Create

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 sudo rm /var/lib/dpkg/lock sudo dpkg --configure -a It should work after this. 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 http://jessriegel.com/unable-to/he-could-not-get-lock-var-lib-apt-lists-lock.html Also, If you receive this error: E: Could not get lock /var/lib/dpkg/lock Via the terminal, run this command to unlock it: rm -f /var/lib/dpkg/lock Then update with this command: sudo apt-get

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 Run below commands in sequence, enter password when prompted.
sudo rm /var/lib/apt/lists/* -vf
Wait for the command execution to finish. Search for processps aux | grep aptThis will catch all running processes that contain apt in their name. 2. Sign in to add this video to a playlist.

First try killing any running instance of apt or aptitude as described in Faheem's answer. Working... The programs that can do this are: The Software Center The Update Manager The apt link installer (I think this now goes through SC) The apt-get or aptitude command line utilities. This should be done only if everything else fails...

Now you can run your command apt-get update without any error. Published on Jun 4, 2016sudo apt-get updateE: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)E: Unable to lock directory /var/lib/apt/lists/ Category Education License Standard YouTube License Show more share|improve this answer answered May 8 at 1:17 Ray 582317 add a comment| up vote 1 down vote If you have security updates set to auto-install this will happen frequently. Abha Network 28,298 views 1:56 How to Delete files in Archives folder of ubuntu -Filesystem,var,cache ,apt,archives - Duration: 2:04.

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 Sign in to report inappropriate content. 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 Follow us on: Populars Comments Archive Popular Posts 11 Tips To Speed Up Computers Running Ubuntu 12.10/12.04/Linux Mint 13 (Maya) A List Of Best 15 Ubuntu 12.04 Themes For Unity and

share|improve this answer edited Oct 6 '15 at 6:40 kos 20.4k55092 answered Jan 15 '15 at 9:54 Wessi 9112 This looks like a comment rather than an answer. share|improve this answer answered 12 hours ago wjandrea 2,2981827 add a comment| up vote -2 down vote After running commands told by Kern in his answer, you may try this: sudo 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: CentOS How to install Univention Corporate Server Linux tutorials POPULAR CATEGORYLinux distributions1476Software570Linux tutorials461News428Frequently Asked Questions313Opensource271Releases139CentOS118Unix113 ABOUT USUnixmen provide Linux Howtos, Tutorials, Tips & Tricks ,Opensource News.

I had to kill it which left various locks in place. 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. Hot Network Questions What's the difference between ls and la? It works by changing the ps COMMAND listing for grep into grep [t]mux, which does not match the regex [t]mux .