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.