[ec2-beta] Java installation hangs

Eric Hammond ehammond at thinksome.com
Mon Jan 12 20:06:53 GMT 2009


The problem with openjdk was a known bug with the official beta
(LP#310898).  I'll add sun-java6-bin to the ticket.  Thanks for reporting.

If anybody figures out a workaround for the current AMI, please let us
know.  I'd like to do more testing with openjdk on the official AMI.

Eric Hammond
ehammond at thinksome.com

Alf Eaton wrote:
> I'm having problems installing Java on the Ubuntu Intrepid EC2 AMI -
> it keeps hanging when installing sun-java6-bin or
> openjdk-6-jre-headless.
> Steps to reproduce:
> ===
> ec2-run-instances ami-814aaee8 -k ec2-keypair
> ec2-describe-instances
> ssh -i ~/.ec2/ec2-keypair.pem my.instance.amazonaws.com
> choose to install Basic Ubuntu server and OpenSSH server
> repeat login, as root
> enable multiverse in /etc/apt/sources.list
> apt-get update && apt-get upgrade -y
> apt-get install sun-java6-jre
> accept the license agreement
> ===
> The machine always hangs on "Setting up sun-java6-bin".
> If I try to use OpenJDK, the same thing happens:
> apt-get install openjdk-6-jre
> hangs on "Setting up openjdk-6-jre-headless".
> Is there something obviously wrong?
> alf

More information about the Ec2-beta mailing list