I have installed the sun java6-jdk package but it's not installed completely. After that it's giving an error when I try to install a new package.

In terminal when I write "sudo apt-get install [any package name]" I get an error like this:

E: could not get lock /var/lib/dpkg/lock -open (11 Resource temporable )
E: Unable to lock the administration directory (/var/lib/dpkg).

Also Synaptic package manager is not opening and none of the packages are downloading through any of the methods I know.

Please help!

link|improve this question

0% accept rate
the lock error indicates another package manager process is already open (it could be apt-get or aptitude or Synaptic or something else), or it could mean the process crashed. can't remember the fix right this second tho. – quack quixote Mar 29 '10 at 14:42
@quack - With you and random on steroids lately, I will start requesting for "someone is already editing" notifications, to not have my editing overridden the next 4 seconds :-] – Gnoupi Mar 29 '10 at 14:47
do a ps -as to see what's running if it is running kill it? – matpol Mar 29 '10 at 14:49
@gnoupi: whoops, sorry! there are notifications ("someone has saved this while you were editing") but i didn't get one this time. don't worry; the new-mod-adrenaline should wear off soon. :) – quack quixote Mar 29 '10 at 14:54
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.