debian apt cant find openjdk-8-jdk
Asked Answered
E

1

5

im trying to install openjdk-8-jdk as suggested here with the command:

sudo apt-get install openjdk-8-jdk

but apt dosnt find the package. i did find it at packages.debian.org manualy and tried to tell apt to also load from there, as suggested on the mirrors page of that package by adding the following line to /etc/apt/sources.list

deb http://ftp.de.debian.org/debian sid main

but apt still cant find the package. i also tried to change the

  • url to http://deb.debian.org/debian
  • sid to buster or buster-backports
  • main to unstable, non-free, contrib (or a list of some or all of those)
  • combinations of all of the above

still no luck.

Ehtelehud answered 23/3, 2020 at 0:39 Comment(0)
D
7
  1. add the following line to /etc/apt/sources.list

    deb http://deb.debian.org/debian/ sid main

  2. install openjdk8

    //Update the repositories<br/>
    $ sudo apt-get update<br/>
    $ sudo apt-get install -y openjdk-8-jdk
    

In fact, I think it is better to search for your question first before ask.

How to install openjdk-8-jdk on Debian 10 (Buster)?

Dunite answered 23/3, 2020 at 1:12 Comment(3)
You beat me to it. It sounds like the OP forgot to run apt-get update after editing /etc/apt/sources.list.Mordent
I would be glad if it would help.Dunite
WARNING !!! do not add an unstable repository on a production server !!!!!Asphyxiant

© 2022 - 2024 — McMap. All rights reserved.