Home > Could Not > Unable To Lock Administration Directory Are You Root

Unable To Lock Administration Directory Are You Root

Contents

Use sudo to run a command with root privileges, like so: sudo apt-get update share|improve this answer edited Mar 15 '14 at 17:49 answered Mar 10 '14 at 9:28 pzkpfw 2,53641636 A published paper stole my unpublished results from a science fair Interview question "How long will you stay with us?" Snowman Bowling How would people living in eternal day learn that Your question doesn't contain any history of how you got to this point or diagnostic details. If this documentation fails to drive your fears away, try looking for the answer on the Debian mailing lists. this contact form

How do I end a process? What is the intuition behind the formula for the average? The way to fix this is using sudo before the command: ➜ ~ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock If an installation breaks in the middle of the process and you find that it's no longer possible to install or remove packages, try running these two commands: # apt-get -f

Could Not Open Lock File /var/lib/dpkg/lock - Open (2: No Such File Or Directory)

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 Related 12What does *~ mean?7What does it mean to be in group 0?8What does <<< mean?2What does the `who` command result `root :0` mean?0What does !$ mean exactly?-3What does root means Or would I need to copy the original build file from makuk66?

How do I print the last 5 fields in awk? You may be able to substitute su -c instead, and give the root password (the password for the root account) when prompted. This is specially true for apt-get. Rm: Cannot Remove ‘/var/lib/dpkg/lock’: Permission Denied For details and our forum data attribution, retention and privacy policy, see here current community blog chat Super User Meta Super User your communities Sign up or log in to customize

Word for fake religious people Two brothers, two watches Does a byte contain 8 bits, or 9? Could Not Open File /var/lib/dpkg/lock I am interested to see what has a lock on dpkg. normally it is not required. –BMW Sep 15 '15 at 2:52 well I often log on to the terminal and need to look at files if I'm investigating some http://unix.stackexchange.com/questions/213638/what-does-are-you-root-mean share|improve this answer answered Nov 29 '12 at 16:18 gertvdijk 39.2k17101175 add a comment| up vote 2 down vote Try with sudo apt-get update If u still get lock error try

As you see from your first error message, sudo is either not installed or not in your path, and probably not configured. E: Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem. How to become root? Hope this helps Yuri_Tukmakov (tukmakov-time) said on 2012-06-01: #14 I recently encountered a similar problem when trying to install the program. What are Identity Columns?

  1. In other words sudo can't know if there's something after, only the shell can. –cYrus Feb 24 '12 at 15:07 My apologies, I'd been on 3 hours of sleep
  2. Thank you for all your help in this matter...
  3. This elevates privileges to the root-user administrative level temporarily, which is necessary when working with directories or files not owned by your user account.
  4. I have tried to edit the directory, and nothing has worked.
  5. If the error looked like: E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  6. Hot Network Questions Is getting IN or OUT of orbit easier for the Space Shuttle?
  7. Then put sudo apt-get install easytag and I have everything worked as before.
  8. Did Donald Trump say that "global warming was a hoax invented by the Chinese"?
  9. Jul 24 at 21:00 add a comment| up vote 2 down vote just run sudo apt-get update sudo is for running it as super user share|improve this answer answered Mar 10
  10. In those cases they offer another way to run administrative commands, like sudo.

Could Not Open File /var/lib/dpkg/lock

ps -e | grep -e apt -e adept | grep -v grep Then open the System Monitor application and kill the process that has the same process ID as the results More hints up vote 25 down vote favorite 3 I get this error whenever I try to install programs using the terminal: [email protected]:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock Could Not Open Lock File /var/lib/dpkg/lock - Open (2: No Such File Or Directory) 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 Error Reading Lock File Not Enough Data Read I want to become a living god!

mass decompress gzip files without gz extension Difference between \the, \showthe and \show commands? weblink Why do manufacturers detune engines? Jul 24 at 20:59 add a comment| up vote 6 down vote Before running any administrative task: installing, removing, changing system wide preferences, etc. In 4/4 time can I insert a half sized bar in the middle of the piece? Could Not Open Lock File /var/lib/dpkg/status Cydia

Ask a question Edit question Subscribers Subscribe Subscribe someone else • Take the tour • Read the guide © 2004-2016 CanonicalLtd. • Terms of use • Contact Launchpad Support • The «are you root?» message is a gentle reminder that you "need to be root" in order to run apt-get install. What evidence do we have that CMB is the result of the Big bang? navigate here What are the considerations for waterproofing a building's first few floors?

The only method that can be used simultaneously with others is the source method. Could Not Get Lock /var/lib/dpkg/lock Kali The message itself tells you where the problem is: are you root? apt share|improve this question edited Mar 23 '14 at 4:23 Braiam 40.2k1696158 asked Nov 29 '12 at 16:15 Raghav Mittal 164348 4 This isn't a duplicate, same error, but different

Ask Ubuntu works best with JavaScript enabled current community chat Unix & Linux Unix & Linux Meta your communities Sign up or log in to customize your list.

Minimum font size for mobile view Scaling up water for cooking soup How to select a good sleeping bag liner Where should a galactic capital be? Incidentally, on machines that aren't set up to allow interactive login by root by default, you can just run sudo bash to get a root shell. :) –reirab Jul 3 '15 If you still get a lock error, close the Ubuntu Software Center (Ubuntu 14.04) or Software application (Ubuntu 16.04) and the terminal to unlock /var/lib/dpkg/, reopen the terminal and try the Unable To Lock Directory /var/cache/apt/archives/ I want to become a living god!

Output the sign more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Hot Network Questions Is getting IN or OUT of orbit easier for the Space Shuttle? http://blacklex.com/could-not/unable-to-obtain-lock.html Please click the link in the confirmation email to activate your subscription.

If the other installation is stuck or canceled, the process will still be blocked. Before removing a lock file you have to be triple sure that the process holding it has closed, or crashed, or whatever. For this to work, the root user account must be enabled and have a password set. December 19, 2016 Disable touchscreen in LinuxOctober 26, 2016Browse anonymously in Kali Linux with AnonsurfOctober 17, 2016Building updated Kali Linux ISOAugust 9, 2016 Popular Categories Kali Linux Security Linux Desktop Managers

Some of that is in comments, but it's incomplete and hard to follow. It appears that you do not have the sudo program installed. Visit Chat Related 1846How is Docker different from a normal virtual machine?650How to remove old Docker containers598How to deal with persistent storage (e.g. Sloping Binary Numbers Checking to see if a string is alphabetic "include a talk of" vs "include talk of" Bought agency bond (FANNIE MAE 0% 04/08/2027), now what?

Why does cycling use a measure of time ("century") as a measure of distance? Response will get answer accepted. –BMB Feb 24 '12 at 14:57 2 I'm afraid you're wrong, && separates two commands and sudo applies to a single command (see man sudo) Validate Random Die Tippers What's the difference between ls and la? This is the DockerFile that I'm extending: https://github.com/makuk66/docker-solr/blob/master/5.3/Dockerfile And my build file is this: FROM makuk66/docker-solr MAINTAINER OCSCommerce Team RUN apt-get update RUN apt-get --assume-yes install vim COPY home/ocscommerce /etc/solr/home

Thank you jelche (campbell-justin-k) said on 2008-11-10: #4 Well, I've tired to install Beagle (apt-get install beagle); VLC ( apt-get install vlc ) so I guess the command is the (apt-get If you read the newspaper, you're mis-informed. - Mark Twain Thinking about becoming an Ubuntu Member? Type the following command in a terminal (applications → accessories → terminal) sudo aptitude install vlc To get better dvd playback first you need to add the medibuntu http://www.medibuntu.org/ repository to Adv Reply June 20th, 2012 #8 bantolo View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jun 2012 Beans 1 Re: Problem with update- Unable to

Can War God's Blessing be applied to Bigby's Hand attacks? As ubuntu allows installing software only one at a time, hence the error. UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Hardware for reading a large number of analog inputs?

You should never use normal sudo to start graphical applications as Root (Please see RootSudo for more information on using sudo correctly.) So, because apt-get installs software and thus affects the Did this just get changed in an update?