APT 无法找到 sun-java5-jdk

APT 无法找到 sun-java5-jdk

我有以下 Ubuntu:

Ubuntu 12.04.1 LTS

安装以下 apt:

apt 0.8.16~exp12ubuntu10.2 for i386 compiled on Jun 15 2012 14:41:15

这是 sources.list 的内容:

deb http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu precise universe main multiverse restricted

deb http://security.ubuntu.com/ubuntu/ precise-security universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu precise-updates universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu precise-backports universe main multiverse restricted

# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

我做了:

sudo apt-get clean
sudo apt-get update

我没有遇到错误。
当我遇到错误时:

sudo apt-cache search ^sun-java

我只有:

sun-javadb-client - Java DB client
sun-javadb-common - Java DB common files
sun-javadb-core - Java DB core
sun-javadb-demo - Java DB demo
sun-javadb-doc - Java DB documentation
sun-javadb-javadoc - Java DB javadoc

最后当我这样做时:

sudo apt-get install sun-java5-jdk

我有:

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

但是!!! 该包存在于存储库中(!!!):

http://archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/

有什么想法吗?
谢谢您的参与。

答案1

无法安装的原因sun-java5-jdk是它不再存在于存储库中。由于安全风险而被删除

如果您需要使用Java,可以安装OpenJDK。

相关内容