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 安装都试试。