...
This can be done with the following steps:
- Download thethe .deb packages for 64-bit architecture from archive.ubuntu.com:
- openjdk-8-jre-headless_8u45-b14-1_amd64.deb with
SHA2560f5aba8db39088283b51e00054813063173a4d8809f70033976f83e214ab56c0
- openjdk-8-jre_8u45-b14-1_amd64.deb with
SHA2569ef76c4562d39432b69baf6c18f199707c5c56a5b4566847df908b7d74e15849
- openjdk-8-jdk_8u45-b14-1_amd64.deb with
SHA2566e47215cf6205aa829e6a0a64985075bd29d1f428a4006a80c9db371c2fc3c4c
- openjdk-8-jre-headless_8u45-b14-1_amd64.deb with
Optionally, confirm the checksums of the downloaded files against the SHA256 strings using the sha256sum tool:
Code Block title Host sha256sum {downloaded .deb file}
Install the packages:
Code Block title Host sudo apt-get update
Run dpkg for the downloaded .deb files. It may produce errors due to missing dependencies:
Code Block title Host sudo dpkg -i openjdk-8-*
To fix missing dependencies:
Code Block title Host sudo apt-get -f install
(Optional) If there was another java version previously installed, update the default versions:
Code Block title Host sudo update-alternatives --config java sudo update-alternatives --config javac
...