Find the answer to your Linux question:
Results 1 to 3 of 3
For using java programming, i need to set up 4 package: sun-java6-bin, sun-java6-jdk, sun-java6-demo, sun-java6-jre. Almost is good. But when I install jdk package I typed a correct syntax: sudo ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Location
    Vietnam
    Posts
    6

    An error occurred when I install jdk from internet.

    For using java programming, i need to set up 4 package: sun-java6-bin,
    sun-java6-jdk, sun-java6-demo, sun-java6-jre.
    Almost is good. But when I install jdk package
    I typed a correct syntax:
    sudo apt-get install sun-java6-jdk
    An error occurred

    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 can't fix this error.
    please help me

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Make sure you don't have Synaptic or other package manager open.

    Assuming you do not, sometimes if a package manager shuts down improperly, it doesn't remove the lock file. You can manually remove it with
    Code:
    sudo rm /var/lib/dpkg/lock

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    That error usually means that there is another package management application running. Are you running another instance of apt-get or synaptic?

Posting Permissions

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