If this is useful in diagnosing the problem or solution, I tried using
nice when running the install, and it worked 2 times. Failed 2 times.
The last time I added the --adjustment=19, and it succeeded. Is it an IO
related problem? Here's my full script.

#!/bin/bash
sudo add-apt-repository "deb http://archive.canonical.com/ natty partner"
sudo apt-get update
#Accept the Java license.
for i in bin jdk jre; do 
  echo "sun-java6-$i shared/accepted-sun-dlj-v1-1 select true" | sudo 
debconf-set-selections
done
# convoluted way to install java. this seems to only work some times! Race 
condition?
# https://forums.aws.amazon.com/message.jspa?messageID=199841#199841
sudo nice --adjustment=19 apt-get install -y sun-java6-jre

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/634487

Title:
  t1.micro instance hangs when installing java

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-notes/+bug/634487/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to