Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


This can be done with the following steps:

  1. Download thethe .deb packages for 64-bit architecture from archive.ubuntu.com:
    1. openjdk-8-jre-headless_8u45-b14-1_amd64.deb with
      SHA256 0f5aba8db39088283b51e00054813063173a4d8809f70033976f83e214ab56c0
    2. openjdk-8-jre_8u45-b14-1_amd64.deb with
      SHA256 9ef76c4562d39432b69baf6c18f199707c5c56a5b4566847df908b7d74e15849
    3. openjdk-8-jdk_8u45-b14-1_amd64.deb with
      SHA256 6e47215cf6205aa829e6a0a64985075bd29d1f428a4006a80c9db371c2fc3c4c
  2. Optionally, confirm the checksums of the downloaded files against the SHA256 strings using the sha256sum tool:

    Code Block
    titleHost
    sha256sum {downloaded .deb file}
  3. Install the packages:

    Code Block
    titleHost
    sudo apt-get update

    Run dpkg for the downloaded .deb files. It may produce errors due to missing dependencies:

    Code Block
    titleHost
    sudo dpkg -i openjdk-8-*

    To fix missing dependencies:

    Code Block
    titleHost
    sudo apt-get -f install
  4. (Optional) If there was another java version previously installed, update the default versions:

    Code Block
    titleHost
    sudo update-alternatives --config java
    sudo update-alternatives --config javac

...