Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've just created a brand new Ubuntu 10.04 Amazon EC2 image that I plan to use as a java application server.

I can log in successfully by SSH.

I want to install the Sun server JRE but have a couple of questions:

  • Access to the "multiverse" doesn't seem to be enabled in the EC2 instance - how to do this?
  • What is the best strategy to avoid reinstalling whenever I start a new instance?

Can any experienced Ubuntu wizard give me some specific advice on how to get this set up in the best possible way?

share|improve this question
    
p.s. I've tried adding "deb archive.canonical.com/ubuntu lucid partner" to my sources.list but it hasn't helped.... –  mikera Jul 15 '10 at 12:39

1 Answer 1

up vote 1 down vote accepted

OK, I think I figured out an approach that works:

Edit sources.list file:
  sudo pico /etc/apt/sources.list

Add lines:
  deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
  deb http://archive.canonical.com/ubuntu lucid partner

Update source list:
  sudo apt-get update

Install Sun Java JRE:
  sudo apt-get install sun-java6-jre
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.