我刚刚在VMWare Workstation中安装了Ubuntu 10.4.
当我尝试安装java时,我找不到包:
xxx@ubuntu:~$sudo apt-get install sun-java6-jre Reading package lists... Done Building dependency tree Reading state information... Done Package sun-java6-jre is not available, but is referred to by another package. This may mean the package is missing, has been obsoleted, or is only available from another source E: Package sun-java6-jre has no installation candidate
我糊涂了.
Ubuntu在Lucid Lynx(10.04)上支持OpenJDK-6.有关详细信息,请参阅OpenJDK的Ubuntu软件包.也可以看看:
https://help.ubuntu.com/community/Java
https://help.ubuntu.com/community/JavaInstallation
正如其他人提到的,Ubuntu/Debian多元宇宙存储库有额外的Java包; 您可以按照以下说明启用它们:
https://help.ubuntu.com/community/Repositories/Ubuntu