You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searching for binary rubies, this might take some time.
Found remote file https://s3.amazonaws.com/jruby.org/downloads/9.1.2.0/jruby-bin-9.1.2.0.tar.gz
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating systemjeffchiu password required for 'apt-get --quiet --yes update': ..-
..
Installing required packages: openjdk-7-jre-headless....
Error running 'requirements_debian_libs_install openjdk-7-jre-headless',
showing last 15 lines of /home/jeffchiu/.rvm/log/1468589813_jruby-9.1.2.0/package_install_openjdk-7-jre-headless.log
++ [[ -n '' ]]
++ command_to_run=(__rvm_sudo -p "%p password required for '$*': " "${command_to_run[@]}")
++ __rvm_sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install openjdk-7-jre-headless'\'': ' apt-get --no-install-recommends --yes install openjdk-7-jre-headless
++ command sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install openjdk-7-jre-headless'\'': ' apt-get --no-install-recommends --yes install openjdk-7-jre-headless
++ sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install openjdk-7-jre-headless'\'': ' apt-get --no-install-recommends --yes install openjdk-7-jre-headless
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-7-jre-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-7-jre-headless' has no installation candidate
++ return 100
++ return 100
Ubuntu 16.04 ships with openjdk 8, so the package should be "openjdk-8-jre-headless". I edited .rvm/scripts/functions/requirements/ubuntu and changed requirements_debian_define_java() to read:
Use 'puppet apply' to install jenkins in ubuntu-16.04 failed.
Need to upgrade the 'openjdk-8-jre-headless' package.
See rvm/rvm#3719
Change-Id: If31abd1d29416dbb567c0f76529913b8327d40c1
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Project: openstack-infra/puppet-jenkins 3f2c0a65aa83d82070f9326eed9fad8d0eb0d869
use 'openjdk-8-jre-headless' for ubuntu-16.04
Use 'puppet apply' to install jenkins in ubuntu-16.04 failed.
Need to upgrade the 'openjdk-8-jre-headless' package.
See rvm/rvm#3719
Change-Id: If31abd1d29416dbb567c0f76529913b8327d40c1
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
I ran:
rvm get head
rvm install jruby
And got this output:
Ubuntu 16.04 ships with openjdk 8, so the package should be "openjdk-8-jre-headless". I edited
.rvm/scripts/functions/requirements/ubuntu
and changed requirements_debian_define_java() to read:which worked. I'm not sure if there are other modifications that should accompany this change.
The text was updated successfully, but these errors were encountered: