我在系统上安装了Ubuntu 18.04的新副本。 现在,我将安装openjdk 8软件包。追随者出来了。
# apt install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openjdk-8-jdk
当我在apt缓存中搜索时,将显示以下内容:
apt-cache search openjdk
default-jdk - Standard Java or Java compatible Development Kit
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
default-jdk-headless - Standard Java or Java compatible Development Kit (headless)
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
openjdk-11-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-11-doc - OpenJDK Development Kit (JDK) documentation
openjdk-11-jdk - OpenJDK Development Kit (JDK)
openjdk-11-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-11-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-11-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-11-source - OpenJDK Development Kit (JDK) source files
有人知道出什么问题了吗?
答案 0 :(得分:3)
好吧,我是通过阅读存储库文档自己找到的。
通过在/etc/apt/sources.list中添加一行,您应该能够使用任何列出的镜像,如下所示:
deb http://security.ubuntu.com/ubuntu仿生安全主宇宙