Photo credit: https://www.flickr.com/photos/spacex/44451125454/
I have been playing with Vagrant and Puppet a lot recently and I had some trouble getting OpenJDK 6 to install on Ubuntu 10.04 (Lucid Lynx). Since I had so much trouble finding the consolidated answer, I've decided to post my solution here.
The problem stems from the fact I want to install OpenJDK via a Debian package. Lucid Lynx's default apt setup doesn't include the correct repositories needed to install OpenJDK. To get this to work, you need to add the correct repository to apt. I accomplished this by using the 'add-apt-repository' python library, like so:
$> sudo apt-get install python-software-properties $> sudo add-apt-repository "deb http://archives.canonical.com/ lucid partner"Once this is done, you need to update the the apt-get cache. You can do this with the following command:
$> sudo apt-get updateNow that apt-get is all up to date, you can finally install OpenJDK 6 JRE with the following command:
$> sudo apt-get install openjdk-6-jdkI hope this helps!
Share this: