Package sun-java6-jdk is not available Ubuntu 10.04 LTS 安装sun-java6-jdk ,出现错误

 

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的软件包

 

记得在国外某个论坛看到说,这个包已经从2012-2-26就移走了。

 

最后实现办法

1、添加这个源:

sudo add-apt-respository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse" 

2、sudo apt-get update
3、sudo apt-get install sun-java6-jdk  OK了

 

 

 

你可能感兴趣的:(available)