Just as Windows and OS X receive huge incremental versions, as does Linux. Wheezy is reaching it's end of life and is unsupported by Java 8 due to incompatible dependencies.

Here I will document the upgrade process on one machine, then write a self contained script to deploy with Puppet.

Here are the links: https://github.com/OpenTreeOfLife/germinator/wiki/Debian-upgrade-notes:-jessie-and-openjdk-8


SSH into the web machine

# ssh root@dtpsdcl82441web1 (OR IP address)
Are you sure you want to continue connecting (yes/no)? yes  

Make sure wheezy is up to date:

# sudo apt-get update
# sudo apt-get upgrade

Changes sources lists to point to jessie packages:

# cd /etc/apt
# sudo sed -i.bak -e 's/wheezy/jessie/' sources.list
# cd sources.list.d
# sudo sed -i.bak -e 's/wheezy/jessie/' repos.list

Preliminary upgrade:

# sudo apt-get update
# sudo apt-get upgrade
... Restart services during package upgrades without asking? y
... What do you want to do about modified configuration file grub? 2

Main part of upgrade (7 minutes):

# sudo apt-get dist-upgrade
... Disable SSH password authentication for root? y
... *** ssl.conf (Y/I/N/O/D/Z) [default=N] ? Y
... some difficulty with SSLMutex when restarting apache ...

Some housekeeping

# sudo apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
# sudo apt-get autoremove

Then after a reboot Java 8 can be installed.

I found the package is available at the jessie backports repository too:

# echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list

Now update

# apt-get update

Finally install Java

# apt-get install openjdk-8-jre