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). Solution 1. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dpkg 2815 root 3rW REG 8,5 0 1043009 /var/lib/dpkg/lock please help Adv Reply June 20th, 2012 #9 nothingspecial View Profile View Unable To Lock Directory /var/cache/apt/archives/ Why is this 'Proof' by induction not valid?
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dpkg 15004 root 3uW REG 8,1 0 7078501 /var/lib/dpkg/lock I also apologize as I am fairly new to Ubuntu, so fixing this Could Not Get Lock /var/lib/dpkg/lock Kali Jul 24 at 21:00 add a comment| up vote 2 down vote just run sudo apt-get update sudo is for running it as super user share|improve this answer answered Mar 10 share|improve this answer answered Jun 11 '12 at 21:47 izx 93.8k22220264 add a comment| up vote 1 down vote I don't see this answer anywhere above but on Ubuntu 16.04, I http://askubuntu.com/questions/223484/permission-denied-are-you-root get error apt-get search virtualbox E: Invalid operation search If the Ch’in dynasty was so short-lived, why was China named for it?
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 E: Unable To Lock Directory /var/lib/apt/lists/ Search for processps aux | grep aptThis will catch all running processes that contain apt in their name. 2. High Jump Champion In what spot would the new Star Wars movie "Rogue One" go in the Machete Order? Before removing a lock file you have to be triple sure that the process holding it has closed, or crashed, or whatever.
In 4/4 time can I insert a half sized bar in the middle of the piece? asked 4 years ago viewed 135194 times active 2 years ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title? Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Are you new to LinuxQuestions.org? E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. asked 6 years ago viewed 1123268 times active 1 month ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title?
Turns out that there was a background process in the Ubuntu Software Center that was waiting for me to manually install some updates. –jvriesem May 12 at 21:16 add a comment| this contact form 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 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 How to make a shell read the whole script before executing it? Could Not Open Lock File /var/lib/dpkg/lock - Open (2: No Such File Or Directory)
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 Related 5I cannot install new packages: “Could not get lock /var/lib/dpkg/lock”1Ubuntu Could not purge package3Weird issue with unmet dependencies when cloning package states from earlier installation on same machine-2dpkg / apt-get Browse other questions tagged apt package-management dpkg or ask your own question. http://globalcryptonews.com/unable-to/unable-to-acquire-package-administration-lock-for-this-system.html In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information.
See if there is any process running as apt-get then kill that processsudo kill -9 If the error persists, apply following commands in a termina, sudo su sudo rm /var/lib/apt/lists/lock apt-get /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable What are those "sticks" on Jyn Erso's back? COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dpkg 15004 root 3uW REG 8,1 0 7078501 /var/lib/dpkg/lock dpkg itself has a lock on the lock file.
Is scroll within a card good or bad?(In desktop) What caused my meringue to fall after adding cocoa? share|improve this answer answered May 16 at 22:02 Wh33t 385 add a comment| up vote 0 down vote In my case I was getting the same message by not realizing I This elevates privileges to the root-user administrative level temporarily, which is necessary when working with directories or files not owned by your user account. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked If you try ps aux | grep apt that will catch processes containing the word apt, at least.
Use sudo to run a command with root privileges, like so: sudo apt-get update share|improve this answer edited Mar 15 '14 at 17:49 answered Mar 10 '14 at 9:28 pzkpfw 2,52141636 Adv Reply October 12th, 2011 #6 matt_symes View Profile View Forum Posts Private Message Visit Homepage I'm back baby. 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 Check This Out This happens when you have just started the ubuntu.
Maybe some old apt thread is locking the file, you need to find out which and kill it or just rebooting will do it. –Bruno Pereira Jan 29 '12 at 11:19 Or else the updater gets locked. –Dan Johansen Feb 28 '14 at 12:50 1 The lock exists to protect your repository configuration files. Show message on products (view.phtml) within specified category only Select records that intersect more than 3 polygons Is it possible to have 3 real numbers that have both their sum and Also I'm unable to install updates using the terminal.
Out of interest do you have synaptic package manager, update manager or software center running ? Browse other questions tagged ubuntu process apt dpkg or ask your own question. cancel complete Is scroll within a card good or bad?(In desktop) Theorems demoted back to conjectures Do progress reports/logging information belong on stderr or stdout? I think I would have to do like previous unlocking problem, but please tell me the exact keywords for command.
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. Adv Reply October 12th, 2011 #4 majordread View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Oct 2011 Beans 19 Re: Problem with update- Unable to By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. This answer is really DANGEROUS.