Home > Unable To > E: Unable To Lock Directory /var/cache/apt/archives/

E: Unable To Lock Directory /var/cache/apt/archives/

Contents

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Reason: solved Adv Reply April 10th, 2013 #2 ibjsb4 View Profile View Forum Posts Ubuntu addict and loving it Join Date Sep 2012 Beans 5,003 Re: how to unlock a I'm writing a small shell wrapper for aptly. What are the applications of taking the output of an amp with a microphone? navigate here

gabsik View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by gabsik 08-06-2009, 01:14 AM #4 ca_mongrel LQ Newbie If an image is rotated losslessly, why does the file size change? Comment 5 Need Real Name 2012-07-14 07:13:08 EDT No problem since I set kernel oplocks = false in smb.conf tar should be fixed somehow. ps -e | grep apt (might show you a number which is essentially a job number. http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process

E: Unable To Lock Directory /var/cache/apt/archives/

ca_mongrel, Sep 1, 2009 #5 tester321 New Member Did you ever find a solution to this? I haven't noticed pipe at first... If you try ps aux | grep apt that will catch processes containing the word apt, at least. Samba should allow you to read mentioned file.

Was a massive case of voter fraud uncovered in Florida? I think it's fixed. IIRC, mentioned patch is related to that situation you have successfully opened file descriptor but you are not able to _read_ from it. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked I don't recommend doing that as a first measure; maybe if there is no alternative.

tibal View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by tibal 05-23-2011, 10:40 AM #6 jonasd1986 LQ Newbie Registered: May 2011 Posts: Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu How to react? If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot. http://askubuntu.com/questions/346143/e-could-not-get-lock-var-lib-dpkg-lock-open-11-resource-temporarily-unavai All of this was very strange as I've never seen it before.

Thanks for finding workaround. > It may be to create a list of files to be tried to read later, > or something else. Rm: Cannot Remove ‘/var/lib/apt/lists/lock’: No Such File Or Directory Log in / Register Ubuntuaptitude package Overview Code Bugs Blueprints Translations Answers [Hardy] How to open lock in aptitude Asked by Shirish Agarwal on 2008-02-12 Hi all, Lots of times I When I did that, I got errors like: newline in field name #padding in files like '/var/lib/dpkg/updates/0003'. Making another list of delayed files would be quite large edit with uncertain future.

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

Is there a word for turning something into a competition? I have the same message regarding inability to open master.lock due to permission denied. E: Unable To Lock Directory /var/cache/apt/archives/ Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Could Not Get Lock /var/lib/dpkg/lock Kali apt-get is now unlocked. –Maxime R.

I'm an absolute beginner. –kern Jan 29 '12 at 11:38 sudo - execute command as root, rm - remove file. check over here Please visit this page to clear all LQ-related cookies. Killing an apt or aptitude process is harmless unless it is actually in the middle of package installation. Can I use that to take out what he owes me? /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable

Done E: Could not get lock /var/lock/aptitude - open (11 Resource temporarily unavailable) Reading package lists... rpm -q tar tar-1.26-6.fc17.x86_64 This tar problem is known. [email protected]:~$ cheers Kev. his comment is here 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

Hope this helps. :) –Hari Apr 6 '13 at 12:23 15 You can use sudo lsof /var/lib/dpkg/lock to find the process that owns the lock file (if empty, assume the E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. Done Building dependency tree Reading state information... We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

This!

Adverb for "syntax" more hot questions about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation I tried the pasted suggestion below but this is all that comes up. Get:1 http://archive.ubuntu.com hardy/universe rawstudio 0.7-1 [238kB] Fetched 238kB in 7s (32.2kB/s) Selecting previously deselected package rawstudio. (Reading database ... 359492 files and directories currently installed.) Unpacking rawstudio (from .../rawstudio_0.7-1_i386.deb) ... Sudo Rm /var/lib/apt/lists/lock 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

If this is the case just wait few seconds or launch Update Manager to check the status. ok will do Adv Reply April 10th, 2013 #7 kevinorourke2008 View Profile View Forum Posts Private Message Just Give Me the Beans! I have checked this supposition and realized that when I do so: % aptly mirror list -raw | xargs -n 1 -I{} aptly snapshot create {}-2014-10-07 from mirror {} ERROR: can't http://ecoflashapps.com/unable-to/unable-to-mount-image-unable-to-access-image-file.html share|improve this answer answered Oct 21 at 19:59 Joe 927618 add a comment| up vote -1 down vote After running commands told by Kern in his answer, you may try this:

https://bugs.edge.launchpad.net/ubuntu/+source/adept/+bug/48627/ From this it seems it just requires a dpkg --configure -a command. Silly, but it might still explain the error for some. Xenforo skin by Xenfocus Contact Us Help Imprint Home Top RSS Terms and Rules Forum software by XenForo™ ©2010-2014 XenForo Ltd. This patch > http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00013.html > is expected to fix the problem.

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Jul 24 at 21:01 add a comment| Not the answer you're looking for? These commands should be run in the order presented. 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

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 I have not touched the relevant directories or files. I always get errors. Code: sudo rm /var/lib/dpkg/lock Adv Reply April 10th, 2013 #3 fantab View Profile View Forum Posts Private Message Ubuntu addict and loving it Join Date Apr 2011 Location 3rd Rock

Close all instances of package manager programs and try again. Postfix will not start, and the same message occurs. auximini View Public Profile View LQ Blog View Review Entries View HCL Entries Visit auximini's homepage! Operator ASCII art What commands can be used to control GUI buttons?

sudo fuser -vki /var/lib/dpkg/lock sudo fuser -vki /var/cache/apt/archives/lock sudo fuser -vki /var/cache/debconf/config.dat sudo dpkg --configure -a Use for unlocking the package system after an update of some kind crashed or terminated At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. If not, then use the command in the above post by ibjsb4, then run 'apt-get update', if it doesn't work then report back with the output of apt-get update. "Evolution is Ask Ubuntu works best with JavaScript enabled Red Hat Bugzilla – Bug839294 tar --create fails to open file (with exit 2) when the kernel lease is established by Samba Last modified:

smira added the bug label Oct 7, 2014 smira added this to the v0.9 milestone Oct 7, 2014 smira closed this Oct 7, 2014 rgevaert referenced this issue Sep 7, 2015