pooky2483@pooky2483-ubuntu12:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?
pooky2483@pooky2483-ubuntu12:~$
I do not know about installing Sun Java but the update errors could be resolved.
pooky2483@pooky2483-ubuntu12:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?
pooky2483@pooky2483-ubuntu12:~$
It is possible that another installation is still running, in which case you must either interrupt it or wait.
If that is not the case, then your lockfile is around from another installation that was interrupted.
Make sure ALL package installation applications (Synaptic, Ubuntu Software centre, and Update Manager) are closed.
Now try the WebUpdate instructions again.
You can only use 1 installer at a time … and apt-get is one of them
[EDIT]
WARNING -
Be sure to DISABLE the JAVA plugin in your browser … only enable it when it’s totally NECESSARY … Oracle/Sun JAVA has MAJOR security issues, OpenJDK/Icedtea (AFAIK) doesn’t.
java version “1.7.0_15”
Java™ SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot™ 64-Bit Server VM (build 23.7-b01, mixed mode)
pooky2483@pooky2483-ubuntu12:~$
I get this warning when it wants run, the other screenshot is telling me it’s installed OK
IIRC, Oracle rather than fixing the security issues have opted to ask the user permission before running anything … until they can be bothered t fix it.
Don’t take this response as “gospel” … nor should you trust Oracle Java to do that every time … I’m only responding with a vague memory of reading that somewhere.