title: issue with installing java package on ec2
body: <p>I was trying to install java using the following command:</p>
  
  <pre><code>sudo add-apt-repository ppa:ferramroberto/java
  sudo apt-get update
  sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
  </code></pre>
  
  <p>during the installation for some reason my micro-instance in EC2 kept on freezing, I guess I am not the only one having this issue as it's posted on the <a href="https://forums.aws.amazon.com/thread.jspa?messageID=269961&#269961" rel="nofollow">aws forum</a> as well. Now when I try to do the whole thing again I get:</p>
  
  <pre><code>E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
  </code></pre>
  
  <p>However, when I try to run sudo dpkg --configure -a, it is just stuck in here:</p>
  
  <pre><code>Setting up sun-java6-bin (6.26-1lucid1) ...
  </code></pre>
  
  <p>for about an hour or so... WHat should I do now to get java in place?</p>