我刚刚安装了 32 位 Debian 5.0.6,但无法安装 Java。
我以为这很简单
# 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 that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jre has no installation candidate
有任何想法吗?
答案1
它们处于“非免费”状态,您需要启用它们。
答案2
确保您已在 apt 呼吸列表中配置了 java 存储库。
在尝试安装之前,请确保执行“apt-get update”。
答案3
Update the package index:
# sudo apt-get update
Install yui-compressor deb package:
# sudo apt-get install yui-compressor
我想很多人都非常想要这个,所以他们为它做了一个包...很高兴,因为 java 很难维护...