debian apt 找不到 openjdk-8-jdk

debian apt cant find openjdk-8-jdk

我正在尝试按照建议 here 使用以下命令安装 openjdk-8-jdk:

sudo apt-get install openjdk-8-jdk

但是找不到包。我通过将以下行添加到 /etc/apt/sources.list

确实在该包的 packages.debian.org manualy and tried to tell apt to also load from there, as suggested on the mirrors page 找到了它
deb http://ftp.de.debian.org/debian sid main

但是 apt 仍然找不到包。我也尝试改变

仍然没有运气。

  1. 将以下行添加到 /etc/apt/sources.list

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

  2. 安装打开jdk8

    //更新存储库
    $ sudo apt-get 更新
    $ sudo apt-get install -y openjdk-8-jdk

其实我觉得你的问题先搜索再问比较好

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