4

I wanted to install OpenJDK-8 on Ubuntu 14.04. So as described here I tried to find the correct name of package (which is openjdk-8-jdk) and run these commands:

sudo apt-get update
sudo apt-get install openjdk-8-jdk

But I got:

E: Unable to locate package openjdk-8-jdk

So I went to Ubuntu Packages Search and Ubuntu Updates and searched for package. But I could not find any thing about trusty (14.04LTS) or trusty-updates. So I was sure there is no install able package to be installed on Ubuntu 14.04.

Of course after sometimes I suddenly found that package belongs to openjdk-r/ppa repository and added that:

sudo add-apt-repository ppa:openjdk-r/ppa

But I want to know how I can find appropriate repository (in above example the openjdk-r/ppa) before consuming times and waiting for chance?

1 Answers1

4

Usually, I do as Jacob Vlijm said through a search engine DuckDuckGo/Google. Most of the time, they bring well results with users feedback from the web.

But not everything, in some cases I back to launchpad site itself which shows me always the final results:

  1. Goto the main page https://launchpad.net/
  2. Search with more keywords to minimize noise (other releases, arch's, ..)

    Example: ppa openjdk-8-jdk amd64 trusty

    Skip the top part (projects). The first one looks like what I want

    amd64 build of openjdk-8 8u91-b14-0ubuntu4~14.04 : OpenJDK ...
    Apr 22, 2016 ... “PPA for OpenJDK uploads (restricted)” team ... OpenJDK builds (all archs);
    amd64 build of openjdk-8 8u91-b14-0ub... created ... Series: Trusty.

    However, the link took me to a buildlog, on top-right area you can see Build details → → ArchiveOpenJDK builds (all archs) which is the PPA link.

  3. Check if the PPA still has that build for trusty, by setting the filter:

    Overview of published packagesPublished in: trusty then press Filter

user.dz
  • 48,105