Sign in to make your opinion count. To add to his solution, 1. share|improve this answer answered Sep 24 at 11:19 Pavel Vlasov 15317 add a comment| up vote 0 down vote I have had this issue numerous times. What is the purpose of Subject-Verb agreement? why not find out more
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 While most or all of this is presented in the other answers, this distills the fix down to a few commands. 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 Unable To Lock Directory /var/cache/apt/archives/ iPeris 21,272 views 3:02 FIXING ERROR IN apt intall (E: Unable to locate package) IN LINUX KALI 2.0 and other.(Working 80%). - Duration: 11:01.
Jarett Dunn 2,452 views 9:58 Installing packages using apt-get or dpkg command in Debian/ Ubuntu Operating Systems - Duration: 5:57. Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu Not the answer you're looking for? This is shown also in update manager. ['Unable to get exclusive lock This usually means that another package management application (like apt-get or aptitude) is already running. http://askubuntu.com/questions/452638/how-can-i-solve-unable-to-lock-the-administration-directory-var-lib-dpkg By deleting a file used by system, you risk the system integrity.
If those answers do not fully address your question, please ask a new question. 1 @Mitch With the note that it is about /var/lib/apt/lists/lock rather than /var/lib/dpkg/lock. –gertvdijk Aug 22 Rm Cannot Remove Var Lib Apt Lists Lock No Such File Or Directory 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 nileshanand2 397 views 1:19 How To Fix "var/lib/dpkg..." Cydia Error Message #1 - Duration: 3:02. I was faced this problem and your way help me for fix this Adv Reply June 4th, 2013 #6 gideonmaina View Profile View Forum Posts Private Message First Cup of
I got it by reading many answers to questions like this one.
apt-fast MAY be responsible for not unlocking properly; this happens sometimes when you abort apt-get or dpkg too. Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked I literally wait 30 seconds and it fixes the issue. Ps Aux | Grep Apt 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
Don't recommend deleting lock file... vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd. This was pretty annoying as it stops you from installing updates or new softwares. Source Being Skilled 3,905 views 5:57 How To Fix "var/lib/dpkg..." Cydia Error Message - Without Having iFile And Terminal #2 - Duration: 8:49.
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 I love Nix! –Wayne Phipps Jun 26 '15 at 13:17 3 Note, killall apt-get does the same thing as your ps/kill combo. –Cerin Jan 15 at 22:09 | show 4 I used it and apparently it worked, but the Dropbox is still downloading. Rm: Cannot Remove â/var/cache/apt/archives/lockâ: No Such File Or Directory 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
I can reach the Internet with Firefox. Search for processes ps -A | grep apt-get2. Tae Grado 722 views 9:29 how fix could not get lock /var /lib// apt/ lists/ lock/ problem ubuntu - Duration: 1:19. have a peek here Make sure that you are not running aptitude, synaptic or adept.
But sometimes it doesn't seem to work so. once the system boots, it automatically runs sudo apt-get update to search for latest update. :) –kushvarma Apr 22 '14 at 7:51 OKAY,THANKS IT WORKED –Yelmaaz Apr 22 '14 Is scroll within a card good or bad? (In desktop) What is the truth about 1.5V "lithium" cells Unsold Atari videogames dumped in a desert? If you're facing the same error without 'Update Manager' running you have to remove it from /var/lib/dgkg/lock, which definitely you can't do it manually sudo fuser -cuk /var/lib/dpkg/lock sudo rm -f
share|improve this answer answered May 8 at 1:17 Ray 582317 add a comment| up vote 1 down vote If you have security updates set to auto-install this will happen frequently. Newer Post Older Post Home Subscribe to: Post Comments (Atom) About Me Vimal Kumar View my complete profile Followers Search This Blog Popular Posts How to root Android Jelly Bean and Search for processps aux | grep aptThis will catch all running processes that contain apt in their name. 2. share|improve this answer answered Oct 21 at 19:59 Joe 937619 add a comment| up vote 0 down vote In my case, X crashed while apt-get was still removing old kernels.
Already have an account?