当前位置: 代码迷 >> Android >> Ubuntu 10.04 LTS 安装 sun-java6-jdk,该如何解决
  详细解决方案

Ubuntu 10.04 LTS 安装 sun-java6-jdk,该如何解决

热度:92   发布时间:2016-05-01 21:58:40.0
Ubuntu 10.04 LTS 安装 sun-java6-jdk
Ubuntu 10.04 LTS 安装 sun-java6-jdk ,出现错误。
Reading package lists... Done
Building dependency tree  
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate
说是Ubuntu 10.04已经去掉 sun-java6-jdk 和 sun-java6-jre的软件包

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk

错误提示还是一样:

Reading package lists... Done
Building dependency tree  
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate

这些都干过了。也查了源列表。。也有http://archive.canonical.com/ lucid partner,并且有了好几个。

求解。。。。

------解决方案--------------------
支持下。问题解决了顺便总结了。

直接冲官网下包安装也可以。
------解决方案--------------------
apt-get 和 .BIN 安装都试试。