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

He Could Not Get Lock /var/lib/apt/lists/lock

Contents

Killing a dpkg process directly, if present, is not a good idea, because if dpkg is active, it is probably manipulating the package database, and killing it may leave the package Does apt-get install vim work on the command line? Get out of the transit airport at Schengen area and the counting of Schengen period How to respond to a ridiculous request from a senior colleague? Maybe anyone confuse with point #1 and #2. this contact form

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 sudo rm /var/lib/dpkg/lock sudo dpkg --configure -a It should work after this. What does the author want to convey by ending his letter with »Tschüssikowsky«? Anyway, if the kernel or native library had been compiled 64-bit, the whole system would not work at all (i.e., this is just a coincidence in the name of the call). why not try these out

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

See this for more info: ubuntuforums.org/showthread.php?t=1858466 –user3728501 Oct 10 '15 at 18:46 add a comment| 1 Answer 1 active oldest votes up vote 40 down vote search for processes. I mean it has nothing to do with a rootfs space issue. I started salt-master using the following command [email protected]:/etc/salt# sudo salt-master -l debug Instead, it should be started from root [email protected]:/etc/salt# salt-master -l debug Starting the master from root solved the problem. sure!

with su Code: /home/user # apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (5 Input/output error) E: Unable to lock the lists directory Best thing is that /var/lib/apt/lists/ Who is this six-armed blonde female character? Output the sign Would presence of MANPADS ground the entire airline industry? Unable To Lock Directory /var/cache/apt/archives/ I left the PC works with this, one day, waiting for the end of this but nothing happened).

[email protected]:~$ sudo dpkg --configure -a Setting up ntp (1:4.2.6.p3+dfsg-1ubuntu3.1) ... * Starting NTP server ntpd *** glibc detected *** lockfile-create: free(): invalid next size (fast): 0x08525008 *** *** glibc detected *** What I did was for the interested crowed: 1# SSH into your lovely device 2# sudo gainroot 3# Code: mkdir -p /var/lib/apt/lists/partial 4# Code: chmod 755 /var/lib/apt/lists && chmod 755 /var/lib/apt/lists/partial 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 http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process Below is how to add Bluefish’s official PPA repository and receive future updates by running regular Ubuntu updates via Software Updater. 1.

Employer offering Roth 401k as well as traditional 401(k), established in career Explain it to me like I'm a physics grad: Greenhouse Effect Could large but sparsely populated country control its Rm Cannot Remove Var Lib Apt Lists Lock No Such File Or Directory Also, when installing manually on the minion using command - sudo apt-get innstall vim, it works perfect. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed or if i try again with apt get-update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock

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

Here’s a run down of the issues: This happens when I tried to use apt-get update [email protected]:~# apt-get update Hit http://http.kali.org sana InRelease Hit http://security.kali.org sana/updates InRelease . . https://www.blackmoreops.com/2015/08/17/fixing-e-could-not-get-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-error/ How much effort (and why) should consumers put into protecting their credit card numbers? Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Could you move this instead as a comment to the answer it was responding to? –jvriesem May 12 at 21:15 1 @jvriesem I think this is a very important answer, Ps Aux | Grep Apt 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 sudo rm

However, if you take a closer look, you’ll observe that... 0 0 More 9 This quick tutorial shows you how to install the latest Bluefish editor (2.2.6 so far) in Ubuntu weblink 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 package-management apt More Why don't the Ubuntu repositories have the latest versions of software? Otherwise you can kill it using kill After making sure there is no process or killing it, you can just Could Not Get Lock /var/lib/dpkg/lock Kali

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 Explain it to me like I'm a physics grad: Greenhouse Effect What is the day to day life like as a father? Hot Network Questions GameObject with Audio File called with FindGameObjectWithTag returns "Object reference not set to an instance of an object" Has my macOS Sierra system been infected by unknown users? navigate here Otherwise this is a sign that something else is installing or removing software and has locked the apt database while it performs the actions.

share|improve this answer answered Sep 11 '14 at 9:08 Shwetabh Sharan 4651411 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable Too many advisors How does ssh run a command? 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

Adv Reply May 24th, 2012 #2 kc1di View Profile View Forum Posts Private Message Ubuntu Cappuccino Scuro Join Date Nov 2004 Location Maine Beans 1,858 DistroUbuntu 16.04 Xenial Xerus Re:

Last edited by danielpublic; 2010-03-26 at 10:17. How can I resolve this? Just type "sudo su" on your terminal. Rm: Cannot Remove ‘/var/cache/apt/archives/lock’: No Such File Or Directory Main power input section P-CH MOSFET connection confirmation Why do manufacturers detune engines?

If there is a lock with no apparent process running, this may mean the process got stuck for some reason. All code is developed on my own time without use of company... 0 0 More Menu command-line apt unity software-installation software-recommendation package-management bash sudo ssh shortcut-keys filesystem ppa security system-installation server Hopefully, this helps someone else! his comment is here Validate Random Die Tippers Is ATC communication subject to FCC profanity regulations?

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. 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). What are those "sticks" on Jyn Erso's back? Why is credit card information not stolen more often?

Crazy 8s Code Golf Theorems demoted back to conjectures Is every parallelogram a rectangle ?? I deleted all the lock files under /var, no success. After finish, you can quit from gainroot (sudo su) by "Ctrl+D". What is the truth about 1.5V "lithium" cells What are these boxes mounted inline on each of the 3 phase wires of a high voltage power line in Miami?

but why happened this? –Jaime Hablutzel May 26 '12 at 22:40 15 @jaime: probably apt-get (or some GUI frontend to it) was halted while executing, leaving apt in a locked Hot Network Questions Shortest auto-destructive loop Output the first position in your program for each input character Does a byte contain 8 bits, or 9? It does not re-encode video, and only decodes and encodes audio as necessary. This has got to do with my kernel since everything else is unmodified.

Whenever you encounter this error, the first step should be to read the error description carefully.