How to find appropriate PPA for installing specific package to solve Unable to locate package?

hasanghaforian

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?

user.dz

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find which PPA contains a specific package?

From Dev

install mysql specific version (Unable to locate package)

From Dev

install mysql specific version (Unable to locate package)

From Dev

Unable to locate package chntpw

From Dev

Unable to locate ntpd package

From Dev

Unable to locate package lightread

From Dev

Unable to locate package source

From Dev

Unable to locate package pkgconfig

From Dev

Unable to locate ntpd package

From Dev

Unable to locate package chntpw

From Dev

Unable to locate package lightread

From Dev

E: Unable to locate package

From Dev

Unable to locate an installed package

From Dev

error : unable to locate package

From Dev

Unable to locate package pthread

From Dev

E: Unable to locate package

From Dev

Unable to locate package pptd

From Dev

Unable to locate package steamcmd

From Dev

E: Unable to locate package

From Dev

How to solve "Unable to locate package update" when doing sudo apt-get install update

From Dev

How to solve the error "Unable to locate package libuhd003" for ubuntu 20.04?

From Dev

Installing CUDA 8 on Ubuntu 16: Unable to locate package cuda

From Dev

Installing CUDA 8 on Ubuntu 16: Unable to locate package cuda

From Dev

Problems installing postgresql-9.4: Unable to locate package

From Dev

How to install AFNI? "unable to locate package libXp"

From Dev

How to install AFNI? "unable to locate package libXp"

From Dev

Unable to uninstall package with error "Unable to locate package"

From Dev

How to pin a PPA package?

From Dev

"E: Unable to locate package php8.0-common" when trying to install, and after adding its ppa