The officially official Devuan Forum!

You are not logged in.

#1 2019-04-26 17:12:32

tlathm
Member
Registered: 2017-11-25
Posts: 78  

openjdk-8 on Jessie

On our current Devuan Jessie installs we have openjdk-7-jre-headless installed. Is there any source available for us to get the openjdk-8 version of that?

Thanks in advance
Tom

Offline

#2 2019-04-27 00:05:56

dxrobertson
Member
Registered: 2017-05-04
Posts: 232  

Re: openjdk-8 on Jessie

You could try try adding backports to /etc/apt/sources.list, and see if its there.  But probably not going to be productive:
https://packages.debian.org/search?keywords=openjdk

You could try downloading the openjdk8 .deb file directly from here
https://packages.debian.org/stretch/ope … k-headless
and install in manually.  You probably will encounter dependencies, such as the JRE; so download and install those as needed.

Then there is the option to download Oracle JDK8 and install that.  But realize Oracle has newly implemented licensing.

Last edited by dxrobertson (2019-04-27 00:33:30)

Offline

#3 2019-04-27 01:14:26

golinux
Administrator
Registered: 2016-11-25
Posts: 3,137  

Re: openjdk-8 on Jessie

Looks like that package is in ascii:
https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any

You would need to backport it to use in jessie (and I have no idea how to do that).  Or you could always upgrade to ascii.

Note that it is "not-a-good-idea" (tm) to use packages directly from the debian repos.  If a package is available, amprolla will serve the debian version to devuan via redirect.

Online

#4 2019-04-27 15:18:02

tlathm
Member
Registered: 2017-11-25
Posts: 78  

Re: openjdk-8 on Jessie

Thanks for all the replies!

golinux wrote:

Looks like that package is in ascii:
https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any

Yea, that's the same package as is available for Debian Stretch. That can (sort of) be installed as long as you also manually install ca-certificates-java as well:

https://pkginfo.devuan.org/cgi-bin/d1pk … ease=ascii

Even then however it complains about breaking tzdata-java and will only install by adding --auto-deconfigure. Pretty ugly to say the least.

It appears to work, but I'm not sure as to what issues that ugliness with tzdata-java might cause.

Tom

Offline

#5 2019-04-27 16:26:38

tlathm
Member
Registered: 2017-11-25
Posts: 78  

Re: openjdk-8 on Jessie

Forgive my ignorance on this, but once I find a package using that Devuan package info search, how can I go about finding a download for the package? Thanks in advance.

EDIT: Yea, if anyone has an ideas on this, I'd like to download the ascii deb files for this. I've turned over every rock I can imagine and can't figure out any means of finding direct download links.

Tom

Last edited by tlathm (2019-04-27 19:37:16)

Offline

#6 2019-04-27 23:44:16

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 1,107  

Re: openjdk-8 on Jessie

Firstly it's useful to know which "section" (main, contrib, non-free) that package should belong to. In this case its main.

Then you look for the Devuan package in

http://deb.devuan.org/devuan/pool/main/o/

As there's nothing suitable there, you look for the Debian package in

http://deb.debian.org/debian/pool/main/o/

Note that the path includes the section and the first letter of the name. If you are looking for a "lib*" package, you use the first 4 letters.

Both deb.devuan.org and deb.debian.org result in one or more redirects to some mirror.

Offline

#7 2019-04-28 14:07:35

tlathm
Member
Registered: 2017-11-25
Posts: 78  

Re: openjdk-8 on Jessie

Thanks! In the case of the Debian link that works, and redirects to a mirror with everything beginning with that letter. The Devuan link just goes directly to that link as-is and for some reason only has directories for five packages. Not sure what's going there.

Another question: I'm assuming those would be for the current stable release(?)...for example ascii on the case of Devuan. What would the links be for other releases?

Thanks.
Tom

Offline

#8 2019-04-28 22:40:46

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 1,107  

Re: openjdk-8 on Jessie

The Devuan link just goes directly to that link as-is and for some reason only has directories for five packages. Not sure what's going there.

The Devuan repository contains a couple of Devuan-only packages, but mostly it contains packages that have been "sanitized". It's an overlay to override those packages, while all else comes from Debian.

Still, the pool contains packages for the union of all versions and variants of all distributions.

Each distribution version/variant is rather declared in an "index file", such as

http://deb.devuan.org/merged/dists/ascii/main/binary-amd64/Packages.xz

which nominates all the packages of the main section in the merged amd64 architecture ascii repository. I.e., it defines everything that on an amd64 host would be targeted as

http://deb.debian.org/merged ascii main

in sources.list.

In fact, that exact file gets downloaded and unzipped into

/var/lib/apt/lists/deb.devuan.org_merged_dists_ascii_main_binary-amd64_Packages

when you do apt-get update, so that the apt sub system locally knows which packages and versions belong to that distribution, section and architecture.

Note then that the merged distributions of Devuan refer to both overriding packages from the Devuan pool, and packages directly from the Debian pool. The beautiful magic that makes that possible is some simple translations of the Filename attributes in the index.

Offline

#9 2019-04-29 01:48:09

tlathm
Member
Registered: 2017-11-25
Posts: 78  

Re: openjdk-8 on Jessie

Thanks for the explanation! I didn't realize that's how it all worked...very cool.

Tom

Offline

Board footer