Google官方说明引发的sun-java6-jdk的安装错误

       我在ubuntu10.04 LTS系统中安装sun-java6-jdk, 按照官方链接里"Intall the JDK"-->java6 : for Gingerbread and newer中的说明,执行以下命令:

$ 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
网上的解决办法都是上述Google官方说明,  不知道是怎么成功的. 没办法了, 我直接执行下面的命令:

$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
问题解決, 这里添加的源是Google官方说明中 sun-java5-jdk的安装源,不知道是怎么个茬, 反正问题是解決了.





你可能感兴趣的:(Google,ubuntu,tree,终端,Deb)