This may leave the user stranded with a broken system. You can then either close that program, restart your PC or send a -TERM to the program with the lock by using kill and the pid. Required fields are marked *Comment Name * Email * Website Recent Comments yoob friv: Your style is so unique compared to other folks I've read stuff from. the preposition after "get stuck" Given that ice is less dense than water, why doesn't it sit completely atop water (rather than slightly submerged)? have a peek here
sudo apt-get install vlc (for example) –ArCiGo Aug 1 '14 at 21:04 Check for existing processes. AWS EC2 ssh from my ip address which has changed fraction line in French Does DFT produces the same output as FFT? Loading... However, once you are sure that's not the case, the following usually works for me. useful reference
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 I left the PC works with this, one day, waiting for the end of this but nothing happened). Why do (some) aircraft shake at low speeds with flaps, slats extended?
My advisor refuses to write me a recommendation for my PhD application unless I apply to his lab Enable Wireless on Fresh Debian Build more hot questions question feed about us share|improve this answer edited Oct 6 '15 at 6:40 kos 19.9k54890 answered Jan 15 '15 at 9:54 Wessi 7111 This looks like a comment rather than an answer. 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. Unable To Lock Directory /var/cache/apt/archives/ Does the reciprocal of a probability represent anything?
If you have any problems then post back. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Interesting, because I am the only user (I just installed the system) and there's no other process using dpkg. Duh, the error is: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? http://askubuntu.com/questions/452638/how-can-i-solve-unable-to-lock-the-administration-directory-var-lib-dpkg The Finslerian version of the Nash embedding theorem Die Liebe höret nimmer auf Why don't miners get boiled to death at 4 km deep?
If this is the case just wait few seconds or launch Update Manager to check the status. Ps Aux | Grep Apt Tags /var/lib/dpkg/lock Resource temporarily unavailable Unable to lock the administration directory Previous Fixing dpkg: warning: ‘ldconfig' not found in PATH or not executable error when installing packages. The lock is placed when an apt process is running, and is removed when the process completes. iP3S1M 8,988 views 8:49 How to upgrade Ubuntu 14.04 to 16.04 LTS - Duration: 5:38.
I am interested to see what has a lock on dpkg. https://www.blackmoreops.com/2015/08/17/fixing-e-could-not-get-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-error/ If you try ps aux | grep apt that will catch processes containing the word apt, at least. Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu There are various reasons you may get an error while updating or upgrading Ubuntu by apt-get update command. Could Not Get Lock /var/lib/dpkg/lock Kali Given a limit with notation f, how would you solve?
I then used "fuser" as described in earlier posts and apt worked, but I was getting complaints about needing to run dpkg -a -reconfigure. http://centralpedia.com/unable-to/ubuntu-error-unable-to-lock-the-administration-directory.html Sign in to make your opinion count. Maybe try sudo rm /var/cache/apt/archives/lock –kubahaha Sep 24 '12 at 13:56 This is not a good suggestion: blindly removing the luck may corrupt dpkg's state. –poolie Feb 2 '15 Thanks for any help. E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem.
If there is a lock with no apparent process running, this may mean the process got stuck for some reason. Fix could not get lock error in ubuntu - "E: Could not get lock /var/lib/apt/lists/lock" or "E: Could not get lock /var/lib/dpkg/lock" problem. If you think that there is nothing currently installing or uninstalling, then just reboot your system with the command sudo reboot. Check This Out 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
It worked, I was able to update, and my update programs are working normally again. /var/cache/debconf/config.dat Is Locked By Another Process: Resource Temporarily Unavailable The other answers bring up very good points about making sure no updates are currently running before doing anything drastic like removing lock files. Sign in to add this to Watch Later Add to Loading playlists...
Then, all of the above problems were fixed... 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 Quick Notepad Tutorial No views 1:16 Ubuntu Server apt-get update error SOLVED - Duration: 4:34. Rm: Cannot Remove ‘/var/lib/apt/lists/lock’: No Such File Or Directory Try 4 - Actually read the error!
Sign in Transcript Statistics 2,587 views 12 Like this video?