现在的位置: 首页 > 综合 > 正文

ubuntu12.04中安装jdk不成功问题

2018年05月01日 ⁄ 综合 ⁄ 共 438字 ⁄ 字号 评论关闭

在ubuntu12.04中,安装jdk发生下面错误

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


网上有很多博客上用下面这个方法是解决不了问题的:

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

错误提示还是一样的

真正的方法参考:http://blog.csdn.net/zjclugger/article/details/11762085

抱歉!评论已关闭.