You are not logged in.

#1 Yesterday 19:16:48

jjanderson5
Member
Registered: 2016-05-10
Posts: 173

problem installing java openJDK

I am trying to install the java openjdk, but I'm having a problem.

I found the following command only: apt-get install openjdk-11-jdk

When I run that commmand, I get:

   Reading package lists... Done
   Building dependency tree... Done
   Reading state information... Done
   E: Unable to locate package openjdk-11-jdk

Can someone point me to instructions to get openjdk installed on
the Debian 12, bookworm release?

It has been a while since I have used apt-get, so I have a 2nd question.
How can I run apt-get to get a list of packages that are available?

Jim A.

Offline

#2 Yesterday 20:11:53

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,112

Re: problem installing java openJDK

apt-cache for searching packages

apt-cache search openjdk

Then install the one you want with apt.

"man apt-cache" for all the possibilities.


You must unlearn what you have learned.
    -- yoda

Offline

#3 Yesterday 23:44:20

hhh
Hercule Poirot
From: Belgium
Registered: 2015-09-17
Posts: 17,652
Website

Re: problem installing java openJDK


Why why why why?!!???

Offline

#4 Today 19:32:19

jjanderson5
Member
Registered: 2016-05-10
Posts: 173

Re: problem installing java openJDK

A lot of thanks to "PackRat" and "hhh"!

Jim A

Offline

Board footer

Powered by FluxBB