$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk [sudo] password for bobpete: Reading package lists... Done Building dependency tree Reading state information... Done Package sun-java6-bin 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 However the following packages replace it: sun-java6-jre E: Package sun-java6-bin has no installation candidate
更新了一下数据源还是不行。
最后找到一贴
http://stackoverflow.com/questions/2270068/cant-install-sun-java6-bin-package-on-ubuntu-hardy-8-04
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
将此添加到数据源list:/ect/apt/sources.list
然后更新数据源
$sudo apt-get update
然后安装
$sudo apt-get install sun-java6-jre sun-java6-jdk
这样就ok了
至少在我的机子上是这样的,记录之。