I am running Kubuntu 16.04. I wanted to share with Unixmen readers. Effective posting, WirelessInfo Script, Using [code] tags, Boot Repair* Please search for 'Ubuntu
The command provided by João should close the program that holds the lock and then remove the lock but won't protect you from install interruption: sudo fuser -cuk /var/lib/dpkg/lock; sudo rm Try 'apt-get -f install' with no packages (or specify a solution). Is it bad form to write mysterious proofs without explaining what one intends to do? Join Date Jul 2009 Location Columbus, Ohio, USA Beans 168 DistroUbuntu 12.04 Precise Pangolin Could not get lock /var/cache/apt/archives/lock - open On Ubunut 11.10, I attempted to use Muon Package Manager http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
Make sure that you are not running aptitude, synaptic or adept. Libertine and TIPA Sans Serif Why is the electric field due to a charged infinite cylinder identical to that produced by an infinite line of charge? Many thanks. asked 6 years ago viewed 1126078 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
give it some time. Hit security.debian.org wheezy/updates/non-free Translation-en Hit packages.omv-extras.org kralizec/main amd64 Packages Hit dh2k.omv-extras.org kralizec-miller/main amd64 Packages Ign dh2k.omv-extras.org kralizec-miller/main Translation-en Ign packages.omv-extras.org kralizec/main Translation-en Creating index of upgradeable packages ... How can I tell whether a generator was just-started? Exception: Unable To Get Write Lock On /var/cache/app-info/xapian/default: Already Locked Enrico "eNry" Carafa (mr.tennents) at https://answers.launchpad.net/ubuntu/+question/181752 referred me to http://askubuntu.com/questions/15433/fixing-could-not-get-lock-var-lib-dpkg-lock.
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 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) E: E: Unable to lock directory /var/cache/apt/archives/ [email protected]:~$ What should I do? her latest blog add a comment| 1 Answer 1 active oldest votes up vote 16 down vote If there is only one terminal running apt-get, or no Synaptic and Ubuntu Software Center; You can
Clearly I have removed some directory structure. Rm: Cannot Remove '/var/cache/apt/archives/lock': No Such File Or Directory did you try both commands? 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 Browse other questions tagged python linux ubuntu pip or ask your own question.
I am new to ubuntu any help will be appreciated. "14.04 lts" E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/ also asked 3 months ago viewed 258 times active 1 month ago Linked 407 Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 5 Could not get lock /var/cache/apt/archives/lock E: Unable To Lock Directory /var/cache/apt/archives/ After selecting the broken package filter, synaptic indicates that the unmet dependency is resolved. Unable To Lock The Administration Directory (/var/lib/dpkg/) Are You Root Ubuntu 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
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. Check This Out Any questions or suggestions are welcomed. First try killing any running instance of apt or aptitude as described in Faheem's answer. Done The following packages will be upgraded: base-files ca-certificates debian-archive-keyring libc-bin libc6 libkeyutils1 libperl5.14 libpq5 libsnmp-base libsnmp15 linux-image-3.2.0-4-amd64 locales multiarch-support openmediavault openmediavault-omvextrasorg perl perl-base perl-modules proftpd-basic snmpd tzdata 21 upgraded, 0 Could Not Get Lock /var/lib/dpkg/lock Kali
So if you try again in a few minutes that should fix it. Why did it take longer to go to Rivendell in The Hobbit than in The Fellowship of the Ring? Why do manufacturers detune engines? Source And this is what precisely happening.
sudo rm /var/lib/dpkg/lock sudo dpkg --configure -a It should work after this. Sudo Rm /var/lib/apt/lists/lock Now the package manager lock has been released and you'll be able to install the packages without any issues. Is every parallelogram a rectangle ??
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dpkg 8276 root 3uW REG 8,1 0 12192158 /var/lib/dpkg/lock Run these series of commands to fix the issue: sudo killall -9 dpkg 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 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 Could Not Open Lock File /var/lib/dpkg/lock - Open (2: No Such File Or Directory) I knew there was a problem with the date/time when I logged in, but was ignoring it. (Previously, it was setting it automatically via the Internet and NTP).
Yes, my password is: Password Remain logged in Lost Password Search subject only Display results as threads More Options Dashboard Forum Undone Threads Members Undone Threads Go to Page Bottom Sitemap Cancel reply Search this website A Must Read For Ubuntu 14.04 Users Subscribe to Weekly Newsletter Free eBook for Download Latest on It's FOSS Raspberry Pi's Pixel OS Is Now Available share|improve this answer edited Oct 6 '15 at 6:40 kos 20.4k55092 answered Jan 15 '15 at 9:54 Wessi 9112 This looks like a comment rather than an answer. have a peek here If it doesn't work or something goes wrong, do: sudo mv /var/cache/apt/archives/lock.backup /var/cache/apt/archives/lock and comment here.
READ ME: Upgrading to a new Major Version of OpenMediaVault Greetings David "Well... I have been trying to install pip in python But get this error: E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) What is this error ? Still have on install that I cant kill. The other answers bring up very good points about making sure no updates are currently running before doing anything drastic like removing lock files.
Quote Report Content Go to Page Top Users Online 3 3 Guests Similar Threads BAD mirror error message during installation mastro59 - Oct 11th 2014, 2:56am General Wheezy: Upgrade from Fedaykin Done Building dependency tree Reading state information... If you try ps aux | grep apt that will catch processes containing the word apt, at least.