title: Install openJDK+openJFX 8 on Ubuntu 20
body: <p>I'm trying to install OpenJDK 8 and OpenJFX 8 on Ubuntu 20.10.</p>
  
  <p>Installing openJFX 8 has always been a little tricky on Ubuntu, but I used to be able to do it using the tip from this SO answer: <a href="https://stackoverflow.com/a/56166582/2423283">https://stackoverflow.com/a/56166582/2423283</a> That used to work fine (I think I was using Ubuntu 19.something), however it appears that recently <code>8u161-b12-1ubuntu2</code> was removed.</p>
  
  <p>For some more background information, I'm installing this via a docker file in an automated pipeline. Here are the relevant parts of the Dockerfile:</p>
  
  <pre><code>FROM my.company.internal.registry:443/ubuntu:latest
  
  RUN apt -y update &amp;&amp; \
      apt -y install \
      openjdk-8-jdk \
      openjfx=8u161-b12-1ubuntu2 \
      libopenjfx-java=8u161-b12-1ubuntu2 \
      libopenjfx-jni=8u161-b12-1ubuntu2
  </code></pre>
  
  <p>This used to run just fine, but now I get:</p>
  
  <pre><code>E: Version '8u161-b12-1ubuntu2' for 'openjfx' was not found
  E: Version '8u161-b12-1ubuntu2' for 'libopenjfx-java' was not found
  E: Version '8u161-b12-1ubuntu2' for 'libopenjfx-jni' was not found
  </code></pre>
  
  <h1>What I've tried so far</h1>
  
  <p>I've tried changing my <code>ubuntu:latest</code> to <code>ubuntu:19:10</code> in my <code>FROM</code> line in the Dockerfile, but I still got the missing packages errors.</p>
  
  <p>I tried just removing those version restrictions (the <code>=8u161-b12-1ubuntu2</code>) and I didn't see any errors during the installation, but then when I compiled my code, none of the JavaFX classes could be found.</p>