Results 1 to 2 of 2

Thread: unable to lock

  1. #1
    Join Date
    Feb 2008
    Beans
    8

    unable to lock

    I am trying to install some upgrades and here is the message I am getting.

    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?
    I am trying to remove/var/lib/dpkg/lock,because I think that is the source of my problem, but it seems no matter what I try from terminal I cannot remove it. I can't just delete it, it won't let me, I must remove it but how do I do that?
    Some help please!!!
    Thank you,
    R Howard

  2. #2
    Join Date
    Jan 2007
    Location
    Melbourne, Australia
    Beans
    5,096

    Re: unable to lock

    Hi, before trying to remove the lock file you should make sure that you have no other package managers opened eg synaptic, apt-get, update-manager, dpkg. If none of those are open then open a terminal and type
    Code:
    ps -e
    this will give a list of running processes check down the list that no package manager is running (synaptic, apt-get, update-manager, dpkg) if there is then you will need to kill the process which you can do with
    Code:
    sudo killall name
    (replace name with name of process)
    if there are no package manager processess running then remove the lock with
    Code:
    sudo rm /var/lib/dpkg/lock
    Ubuntu Newbie Help: irc: #beginners-help on network irc.freenode.net
    Help others, mark your threads solved.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •