I downloaded the package and went through the installation process. I was first prompted with the license. There was an unclickable button which, as the tutorial said, I had to click. So I closed the terminal, relogged and tried writing the same apt-get command, the result was:
sam@ubuntu:~$ sudo apt-get install sun-java6-jdk
[sudo] password for sam:
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?
How do I continue the process and, well this is embarrassing, how do I "approve" the license?