Home > Unable To > Sudo Rm /var/cache/apt/archives/lock

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

Contents

First try to find out which application it is by using this command in the terminal ps aux | grep '[a]pt' If there is a process running using apt (like apt-get I know the Correct answer, so bear with me please. sudo apt-get install vlc (for example) –ArCiGo Aug 1 '14 at 21:04 Check for existing processes. I left the PC works with this, one day, waiting for the end of this but nothing happened). his comment is here

ps aux | grep apt or ps aux | grep dpkg. –Faheem Mitha Aug 1 '14 at 21:04 add a comment| 1 Answer 1 active oldest votes up vote 7 down share|improve this answer edited Mar 23 '14 at 12:41 answered Mar 23 '14 at 12:34 Cheapskate01 115 add a comment| protected by goldilocks♦ Sep 27 '15 at 12:46 Thank you for This all happened right after system boot. Oturum aç 1 Yükleniyor... my review here

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

Protected folders can only be deleted or changed by a root user. 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 If it's not suitable try this askubuntu.com/a/315791/378845 before you remove locks –Menuka Ishan Oct 23 at 7:03 add a comment| up vote 9 down vote This will happen if you have For all standard (non-LTS) releases, the maximum duration of support is 18 months.Both versions have pros and cons - LTS gets long term support and standard gets latest features.

Happens sometimes... –Gotschi Mar 10 '14 at 11:40 Thanks but when I enter it, it still says Permission denied –Papadopolous Mar 10 '14 at 12:00 I am While most or all of this is presented in the other answers, this distills the fix down to a few commands. Oturum aç Paylaş Daha fazla Bildir Videoyu bildirmeniz mi gerekiyor? E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. So if you try again in a few minutes that should fix it.

It might be better to find out which process has the lock and kill that process. What are those "sticks" on Jyn Erso's back? in any event log out and back in and see if that does it. This should be done only if everything else fails...

Dec 4 '14 at 21:47 11 This crashed my entire server. –에이바 Jan 5 '15 at 21:28 5 Killing apt or dpkg half way through is not a great E: Unable To Lock Directory /var/cache/apt/archives/ Are zipped EXE files harmless for Linux servers? By deleting a file used by system, you risk the system integrity. Please close that application first.'] Attached Images Screenshot from 2013-09-15 16:42:46.png (23.9 KB, 6 views) Screenshot from 2013-09-15 16:42:18.png (45.1 KB, 5 views) Adv Reply September 15th, 2013 #9 kinetonat

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

How can I fix this? https://ubuntuforums.org/showthread.php?t=1986288 Not the answer you're looking for? Sudo Rm /var/cache/apt/archives/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 Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Exaggerated Vs Melodramatic How can I turn rolled oats into flour without a food processor?

Help, my office wants infinite branch merges as policy; what other options do we have? this content 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 Are zipped EXE files harmless for Linux servers? You can change this preference below. Could Not Get Lock /var/lib/dpkg/lock Kali

vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. sudo fuser -cuk /var/cache/apt/lists/locksudo rm -f /var/cache/apt/lists/lockOR (as the case may be)sudo fuser -cuk /var/cache/apt/archives/locksudo rm -f /var/cache/apt/archives/lockOR (if dpkg was stuck instead of apt)sudo fuser -cuk /var/lib/dpkg/locksudo rm -f /var/lib/dpkg/lock http://awendigital.com/unable-to/exception-unable-to-get-write-lock-on-var-cache-app-info-xapian-default-already-locked.html KaliTut 719 görüntüleme 3:59 No se pudo bloquear /var/lib/dpkg/lock - Süre: 2:12.

The most notable symptom is perhaps the date/time of the lock file being the exact date/time that you are trying to run the command. /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable Dilinizi seçin. What should I do?

Cloud Network 122.727 görüntüleme 4:07 How To Fix "var/lib/dpkg..." Cydia Error Message - Without Having iFile And Terminal #2 - Süre: 8:49.

share|improve this answer answered Mar 10 '14 at 18:51 RPi Awesomeness 2,22321949 add a comment| Did you find this question interesting? Don't use rm -f (for that matter rm command in general) if you don't know what you are doing.Hope this helps!ReplyDeleteUnknownOctober 20, 2015 at 1:19 PMUbuntu 13.04 is also a stable Browse other questions tagged apt package-management dpkg or ask your own question. Ps Aux | Grep Apt Learn more You're viewing YouTube in Turkish.

Would you like to answer one of these unanswered questions instead? Running the command then resolved the issue. Getting error message when integrating a simple piecewise function Does Wand of the War Mage apply to spells cast from other magic items? check over here Does Wand of the War Mage apply to spells cast from other magic items?

Hot Network Questions How to replace not found reference "??" in an another constant e.g "REF"? I think I would have to do like previous unlocking problem, but please tell me the exact keywords for command. Would you like to answer one of these unanswered questions instead? Search for processps aux | grep aptThis will catch all running processes that contain apt in their name. 2.

Hot Network Questions Is ATC communication subject to FCC profanity regulations? If you decide to do it, you can add this text to your question. –Eliah Kagan Jun 6 '12 at 9:10 1 I would suggest one more thing that you This may leave the user stranded with a broken system. 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

I'm an absolute beginner. –kern Jan 29 '12 at 11:38 sudo - execute command as root, rm - remove file. For me, it was almost always caused by apt-get or some GUI that called it getting hung for some reason. Yükleniyor... Çalışıyor...