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). Why wouldn't the part of the Earth facing the Sun a half year before be facing away from it now at noon? Jul 24 at 21:01 add a comment| Not the answer you're looking for? apt dpkg share|improve this question edited Feb 18 '14 at 20:40 minerz029 13.4k84583 asked Sep 16 '13 at 7:12 user2782858 81114 marked as duplicate by Kevin Bowen, Alaa Ali, Eric Carvalho, navigate here
GameboyHippo Debian 1 05-26-2004 03:43 PM How to 'apt-cache search' & 'apt-file search' by distribution? It is your Gate to the the world of Linux/Unix and Opensource in General. 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 Does Wand of the War Mage apply to spells cast from other magic items? http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
Why do manufacturers detune engines? asked 6 years ago viewed 1126156 times active today Linked 22 How can I solve Unable to lock the administration directory (/var/lib/dpkg/) 19 Could not get lock /var/lib/apt/lists/lock 15 E: Could 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
and besides, it doesn't actually say it couldn't get a lock file; it says it couldn't lock the cache file, which seems like a different statement entirely? How should night time be determined and logged in a fast westbound plane? For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. /var/cache/debconf/config.dat Is Locked By Another Process Adv Reply Quick Navigation New to Ubuntu Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Ubuntu Forum Community Ubuntu Official Flavours Support New
Do you want to continue [Y/n]? Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu any idea?? either wait for another answer or try the debian mailing lists. The female equivalent of "don't break my balls" Fields that can be ordered in more than one way Is the effect of dollar sign the same as textit?
Mudama (on-list) Monique Y. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked 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 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 I know I have done the same.
I googled a bit and found the solution after spending almost an hour. http://sinistro.org/unable-to/could-not-get-lock-var-cache-apt-archives-lock.html 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 If this is the case just wait few seconds or launch Update Manager to check the status. 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. E: Unable To Lock Directory /var/cache/apt/archives/
I then used "fuser" as described in earlier posts and apt worked, but I was getting complaints about needing to run dpkg -a -reconfigure. Mudama (off-list) Follow-Ups: Problem gone (Re: aptitude/apt: "could not lock the cache file") From: "Monique Y. Hopefully, this helps someone else! his comment is here simply use: mkdir -p /var/cache/apt/archives/partial touch /var/cache/apt/archives/lock chmod 640 /var/cache/apt/archives/lock –user83606 Jun 5 '11 at 16:49 3 You should always use sudo. –bahamat Jun 5 '11 at 17:49 add a
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 Sudo Rm /var/lib/apt/lists/lock 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 Here's a run down of the issues: "E: Could not get lock /var/lib/dpkg/lock" error This happens when I tried to use apt-get update
Archives Archives Select Month December 2016 (4)
To clean archives cleanly, use: sudo apt-get clean share|improve this answer answered Feb 5 '10 at 13:47 ‚ĄĚaphink 6,82012440 thanks it works fine My lenny is coming back –benoit I'm guessing fuser would be helpful here, if I knew the name of the cache file. for k, (_, timestamp) in list(cache.items()): if _to_timestamp(datetime.datetime.now()) >= timestamp + self._max_age: del cache[k] f.file_handle().truncate(0) f.file_handle().seek(0) json.dump(cache, f.file_handle()) else: LOGGER.debug('Could not obtain a lock for the cache file.') except Exception as Dpkg: Error: Dpkg Status Database Is Locked By Another Process Done Building dependency tree¬†¬†¬†¬†¬† ¬† Reading state information...
Click Here to receive this Complete Guide absolutely free. Once I realized this I just ran apt-get, and it worked. Please visit this page to clear all LQ-related cookies. weblink Having a problem logging in?
Now the package manager lock has been released and you'll be able to install the packages without any issues.