Full disk problem on Ubuntu 16.04 (Xenial Xerus) How can I keep the computers on my spaceship from dying after a hull breach? What are the considerations for waterproofing a building's first few floors? Just throwing this out there in case anyone else encounters this issue. share|improve this answer edited Dec 31 '13 at 8:16 minerz029 13.4k84583 answered Nov 30 '10 at 4:55 karthick87 30k43145206 9 Deleting the lock file is, what I would consider, a http://netfiscal.com/unable-to/e-unable-to-lock-directory-var-cache-apt-archives-debian.html
share|improve this answer answered Oct 21 at 19:59 Joe 927619 add a comment| up vote -2 down vote After running commands told by Kern in his answer, you may try this: three-letter codes for countries Do (did) powered airplanes exist where pilots are not in a seated position? 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. Error Logging Utility and Controllers How do I respond when players stray from my prepared material? http://askubuntu.com/questions/399709/install-with-sudo-app-get-install-doesnt-work-not-using-locking-for-read-only
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 Otherwise this is a sign that something else is installing or removing software and has locked the apt database while it performs the actions. And this is what precisely happening. Reply Tommy says September 29, 2014 at 9:51 am Yes and a more experienced friend helped me.
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 you can verify this by looking at cat /proc/mounts dmesg | grep sda3 might hold information on what went wrong with your filesystem.lastly, you can execute tune2fs -c 0 -i 0d /dev/sda3`and reboot correct one. –Anwar Apr 6 '13 at 14:37 6 @AnwarShah no, there are other considerations before going around removing files of the system. –Braiam Dec 31 '13 at 14:47 10 Sudo Mount -o Remount,rw / I'm running it of my Hard drive.
Done The following extra packages will be installed: python-crypto python-openssl python-pam python-pkg-resources python-pyasn1 python-serial python-twisted-bin python-twisted-conch python-twisted-core python-twisted-lore python-twisted-mail python-twisted-names python-twisted-news python-twisted-runner python-twisted-web python-twisted-words python-zope.interface Suggested Mount: Cannot Remount /dev/sda1 Read-write, Is Write-protected Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] apt-get lock error Results share|improve this answer edited Apr 6 '14 at 21:14 answered Oct 4 '13 at 12:39 Batsu 1593 I had this right after installing Ubuntu 16.04. https://ubuntuforums.org/showthread.php?t=1086473 If the Ch’in dynasty was so short-lived, why was China named for it?
Answer Follow Flag Follow up NN comments lorinweilenmann - It seems like your /dev/sda3 has had an error and has been remounted with ro. Unable To Open /var/lib/sudo/ Ciao :) Related PostsFix Cannot Empty Trash In Ubuntu 14.04 [Quick Tip]How To Fix: Failed to fetch cdrom apt-get update cannot be used to add new CD-ROMsHow To Record Your Screen 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 Not the answer you're looking for?
I'm wondering why it's telling you it's "read-only" - how are you using Ubuntu? Thank you. –elimisteve Feb 14 '15 at 11:13 Note that if you do this, you can very quickly make your device unusable. Not Using Locking For Read Only Lock File /var/lib/apt/lists/lock Help, my office wants infinite branch merges as policy; what other options do we have? Cannot Remove /var/lib/dpkg/lock' Read-only File System Why does a (D)DoS attack slow down the CPU and crash a server?
you can verify this by looking at cat /proc/mounts dmesg | grep sda3 might hold information on what went wrong with your filesystem.lastly, you can execute tune2fs -c 0 -i 0d /dev/sda3`and reboot 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 when running sudo apt-get dist-upgrade again. E: Unable To Lock The Administration Directory (/var/lib/dpkg/), Is Another Process Using It? cheers Adv Reply March 4th, 2009 #8 DBrocks View Profile View Forum Posts Private Message Cookies and cream Join Date Sep 2007 Location ~/ Beans 397 DistroUbuntu Re: apt-get lock
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 Huge fan of Agatha Christie work. We don't test phones which are updated by "apt-get upgrade" for example, only using the OTA update system. Check This Out Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
did you try both commands? three-letter codes for countries How to respond to a ridiculous request from a senior colleague? Last edited by DBrocks; March 5th, 2009 at 08:30 PM. In 4/4 time can I insert a half sized bar in the middle of the piece?
I enabled Developer Mode, then ran this command, and all is well! Clearly I have removed some directory structure. The programs that can do this are: The Software Center The Update Manager The apt link installer (I think this now goes through SC) The apt-get or aptitude command line utilities. 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
If there is a lock with no apparent process running, this may mean the process got stuck for some reason.