Ubuntu Geek

Ubuntu Linux Tutorials,Howtos,Tips & News | Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed

  • Follow Us on Twitter

  • Sponsor


  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

How to fix lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) Error

Posted by admin on March 30th, 2007 Email This Post Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

If you are getting the following error when you try to install any packages use the following tip to fix this

Error

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?

Solution

First thing you need to check Synaptic Package Manager open at the same time

or

That happens when synaptic or another package update / installation application is already running. Close any other package managers (including Add/Remove application, language pack installer, etc.) and retry.

Share/Save/Bookmark

Related Articles

13 Responses to “How to fix lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) Error”

  1. kobewan Says:

    I’ve actually found that recently my apt-get isn’t closing cleanly either, so that it keeps running even if I close the terminal window. A quick “sudo killall apt-get” fixes that, although I’m guessing that this isn’t most proper way of doing things.

  2. Bob Says:

    I’m unable to find anything running, system monitor says everything is sleeping. I even ran sudo killall for apt-get and synaptic and it says “apt-get: no process killed” etc. In the mean time I can’t update my 7.04 alpha system, it says run “dpkg –configure -a”. I ran it but don’t know what to do when it opens. var/lib/dpkg/lock with white X in brown box in the upper right corner, 0 bytes. Help me Ubuntu Geek, your my only hope.

    Newbie

  3. admin Says:

    bob

    could you please provide the exact error message and what you are trying to do

  4. viga Says:

    Thanks!!!!!!!!!

  5. Job Says:

    hahaha, i had synaptic open, i’m such an idiot, thank you :)

  6. JaBa Says:

    rm /var/lib/dpkg/lock

  7. Zangwei Says:

    If we remove the lock file, Is there any influence of the system?

  8. sandeep Says:

    Thanks Q !!!!

  9. cody Says:

    thanks!

  10. ChronicLogic Says:

    diane@dianes-desktop:~$ sudo apt-get install amarok-kde4
    [sudo] password for diane:
    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?
    diane@dianes-desktop:~$ sudo apt-get install amarok-kde4
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    amarok-kde4: Depends: kdebase-runtime (>= 4:4.1.2) but it is not going to be installed
    Depends: kdelibs5 (>= 4:4.1.3) but it is not going to be installed
    Depends: libc6 (>= 2.8~20080505) but 2.7-10ubuntu4 is to be installed
    Depends: libgcrypt11 (>= 1.4.0) but 1.2.4-2ubuntu7 is to be installed
    Depends: libmtp8 but it is not installable
    Depends: libphonon4 (> 4:4.2.0) but it is not going to be installed
    Depends: libqt4-dbus (>= 4.4.3) but it is not installable
    Depends: libqt4-network (>= 4.4.3) but it is not installable
    Depends: libqt4-opengl (>= 4.4.3) but it is not installable
    Depends: libqt4-script (>= 4.4.3) but it is not installable
    Depends: libqt4-sql (>= 4.4.3) but it is not going to be installed
    Depends: libqt4-svg (>= 4.4.3) but it is not installable
    Depends: libqt4-webkit (>= 4.4.3) but it is not installable
    Depends: libqt4-xml (>= 4.4.3) but it is not installable
    Depends: libqtcore4 (>= 4.4.3) but it is not installable
    Depends: libqtgui4 (>= 4.4.3) but it is not installable
    Depends: libstreamanalyzer0 (>= 0.5.11) but it is not going to be installed
    Depends: libstreams0 (>= 0.5.11) but it is not going to be installed
    Depends: libtag1c2a (>= 1.5) but 1.4-8ubuntu1 is to be installed
    Depends: phonon (> 4:4.2.0) but it is not installable
    E: Broken packages
    diane@dianes-desktop:~$ sudo apt-get install amarok-kde4
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    amarok-kde4: Depends: kdebase-runtime (>= 4:4.1.2) but it is not going to be installed
    Depends: kdelibs5 (>= 4:4.1.3) but it is not going to be installed
    Depends: libc6 (>= 2.8~20080505) but 2.7-10ubuntu4 is to be installed
    Depends: libgcrypt11 (>= 1.4.0) but 1.2.4-2ubuntu7 is to be installed
    Depends: libmtp8 but it is not installable
    Depends: libphonon4 (> 4:4.2.0) but it is not going to be installed
    Depends: libqt4-dbus (>= 4.4.3) but it is not installable
    Depends: libqt4-network (>= 4.4.3) but it is not installable
    Depends: libqt4-opengl (>= 4.4.3) but it is not installable
    Depends: libqt4-script (>= 4.4.3) but it is not installable
    Depends: libqt4-sql (>= 4.4.3) but it is not going to be installed
    Depends: libqt4-svg (>= 4.4.3) but it is not installable
    Depends: libqt4-webkit (>= 4.4.3) but it is not installable
    Depends: libqt4-xml (>= 4.4.3) but it is not installable
    Depends: libqtcore4 (>= 4.4.3) but it is not installable
    Depends: libqtgui4 (>= 4.4.3) but it is not installable
    Depends: libstreamanalyzer0 (>= 0.5.11) but it is not going to be installed
    Depends: libstreams0 (>= 0.5.11) but it is not going to be installed
    Depends: libtag1c2a (>= 1.5) but 1.4-8ubuntu1 is to be installed
    Depends: phonon (> 4:4.2.0) but it is not installable
    E: Broken packages
    diane@dianes-desktop:~$

  11. ChronicLogic Says:

    diane@dianes-desktop:~$ rm /var/lib/dpkg/lock
    rm: remove write-protected regular empty file `/var/lib/dpkg/lock’? y
    rm: cannot remove `/var/lib/dpkg/lock’: Permission denied
    diane@dianes-desktop:~$

  12. admin Says:

    @Chroniclogic

    Try to restart you pc and check if not run the following command

    sudo apt-get -f install

  13. ChronicLogic Says:

    Here were the results of the

    sudo apt-get -f install

    diane@dianes-desktop:~$ sudo apt-get -f install
    Reading package lists… Done
    Building dependency tree… 0%
    Building dependency tree
    Reading state information… Done
    The following packages were automatically installed and are no longer required:
    texlive-base texlive texlive-fonts-recommended texlive-common mysql-common
    libfftw3-3 tofrodos texlive-base-bin libmysqlclient15off ruby1.8 tetex-bin
    tidy libtidy-0.99-0 ruby libtunepimp5 libifp4 texlive-latex-recommended
    texlive-latex-base libpq5 libruby1.8 texlive-doc-base tex-common libnjb5
    libofa0
    Use ‘apt-get autoremove’ to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    diane@dianes-desktop:~$

    Then I attempted the sudo apt-get install amarok-kde4

    And received the same error,

    Thanks for your response! :P

    I really think that Amarok will be awesome once its installed and working properly!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>