简体   繁体   English

debian apt 找不到 openjdk-8-jdk

[英]debian apt cant find openjdk-8-jdk

im trying to install openjdk-8-jdk as suggested here with the command:我正在尝试使用以下命令按照此处的建议安装 openjdk-8-jdk:

sudo apt-get install openjdk-8-jdk

but apt dosnt find the package.但 apt dosnt 找到包。 i did find it at packages.debian.org manualy and tried to tell apt to also load from there, as suggested on themirrors page of that package by adding the following line to /etc/apt/sources.list我确实在packages.debian.org manualy上找到了它,并试图告诉apt也从那里加载,如该包的镜像页面所建议的那样,将以下行添加到/etc/apt/sources.list

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

but apt still cant find the package.但 apt 仍然找不到包。 i also tried to change the我也试图改变

  • url to http://deb.debian.org/debian网址到http://deb.debian.org/debian
  • sid to buster or buster-backports sid 到 buster 或 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.仍然没有运气。

  1. add the following line to /etc/apt/sources.list将以下行添加到 /etc/apt/sources.list

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

  2. install openjdk8安装 openjdk8

    //Update the repositories //更新存储库
    $ sudo apt-get update $ sudo apt-get 更新
    $ sudo apt-get install -y openjdk-8-jdk $ 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)? 如何在 Debian 10 (Buster) 上安装 openjdk-8-jdk?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM