LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   antiX / MX Linux (https://www.linuxquestions.org/questions/antix-mx-linux-127/)
-   -   openjdk-8-jdk unable to locate package (https://www.linuxquestions.org/questions/antix-mx-linux-127/openjdk-8-jdk-unable-to-locate-package-4175674189/)

saturn1955 04-29-2020 03:36 AM

openjdk-8-jdk unable to locate package
 
I want to try out the prog portfolio performance, to get it runnung I need java version 8. I tried to install it but I get the following error code

Code:

$ sudo apt-get install openjdk-8-jdk
[sudo] Passwort für madmax:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.     
Statusinformationen werden eingelesen.... Fertig
E: Paket openjdk-8-jdk kann nicht gefunden werden.
madmax@Toshiba:~

How I can install openjdk version 8 on my notebook?

shruggy 04-29-2020 04:14 AM

What is the output of apt-cache pkgnames openjdk?

saturn1955 04-29-2020 05:36 AM

Code:

$  apt-cache pkgnames openjdk?
madmax@Toshiba:~
$


shruggy 04-29-2020 05:38 AM

No, the command should be run without the ? sign:
Code:

apt-cache pkgnames openjdk

saturn1955 04-29-2020 05:42 AM

Code:

$ apt-cache pkgnames openjdk
openjdk-11-demo
openjdk-11-source
openjdk-11-jre-headless
openjdk-11-dbg
openjdk-11-doc
openjdk-11-jdk
openjdk-11-jre
openjdk-11-jre-zero
openjdk-11-jre-dcevm
openjdk-11-jdk-headless
madmax@Toshiba:~

Code:

$ $ apt-cache pkgnames openjdk
bash: $: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-demo
bash: openjdk-11-demo: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-source
bash: openjdk-11-source: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre-headless
bash: openjdk-11-jre-headless: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-dbg
bash: openjdk-11-dbg: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-doc
bash: openjdk-11-doc: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jdk
bash: openjdk-11-jdk: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre
bash: openjdk-11-jre: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre-zero
bash: openjdk-11-jre-zero: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre-dcevm
bash: openjdk-11-jre-dcevm: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jdk-headless
bash: openjdk-11-jdk-headless: Kommando nicht gefunden.
madmax@Toshiba:~
$ madmax@Toshiba:~
bash: madmax@Toshiba:~: Kommando nicht gefunden.
madmax@Toshiba:~
$ $ apt-cache pkgnames openjdk
bash: $: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-demo
bash: openjdk-11-demo: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-source
bash: openjdk-11-source: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre-headless
bash: openjdk-11-jre-headless: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-dbg
bash: openjdk-11-dbg: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-doc
bash: openjdk-11-doc: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jdk
bash: openjdk-11-jdk: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre
bash: openjdk-11-jre: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre-zero
bash: openjdk-11-jre-zero: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jre-dcevm
bash: openjdk-11-jre-dcevm: Kommando nicht gefunden.
madmax@Toshiba:~
$ openjdk-11-jdk-headless
bash: openjdk-11-jdk-headless: Kommando nicht gefunden.
madmax@Toshiba:~
$ madmax@Toshiba:~
bash: madmax@Toshiba:~: Kommando nicht gefunden.
madmax@Toshiba:~


shruggy 04-29-2020 05:49 AM

Quote:

Originally Posted by saturn1955 (Post 6117206)
Code:

$ apt-cache pkgnames openjdk
openjdk-11-demo
openjdk-11-source
openjdk-11-jre-headless
openjdk-11-dbg
openjdk-11-doc
openjdk-11-jdk
openjdk-11-jre
openjdk-11-jre-zero
openjdk-11-jre-dcevm
openjdk-11-jdk-headless
madmax@Toshiba:~


As you can see, there're no openjdk-8-related packages provided by repositories configured and enabled on your system.

ondoho 04-29-2020 05:52 AM

^ I think we can ignore the second code box.
Did you look at it closely?

Anyhow, it seems openjdk-8-jdk is not available on AntiX 19 - at least not out of the box.
AntiX 19 is based on Debian buster, yes? I created a search for you.

shruggy 04-29-2020 06:08 AM

Interestingly, the repos of the sister distro, MX Linux, have the package: http://mxrepo.com/mx/repo/pool/main/o/openjdk-8/


All times are GMT -5. The time now is 05:46 PM.