简体   繁体   English

在Debian Squeeze服务器上安装openjdk7-jre

[英]Installing openjdk7-jre on debian squeeze server

I am trying to update a server to use openjdk-7-jre using 我正在尝试更新服务器以使用openjdk-7-jre

apt-get install openjdk-7-jre

This returns this. 这返回此。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openjdk-7-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

apt-get is reading from a file called /etc/apt/sources.list apt-get正在从名为/etc/apt/sources.list的文件中读取

In this file I have. 在这个文件中。

 # Generated by ndn-autoupdate
 deb http://hg.openjdk.java.net/build-infra/jdk7/jre/ squeeze main
 deb-src http://hg.openjdk.java.net/build-infra/jdk7/jre/ squeeze main
 deb http://debian.di.newdream.net/ squeeze ndn
 deb http://debian.newdream.net/ squeeze main contrib non-free
 deb http://security.debian.org/ squeeze/updates main contrib non-free
 deb http://debian.newdream.net/ squeeze-updates main contrib non-free
 deb http://www.backports.org/debian/ squeeze-backports main contrib non-free

This does not work nor does just adding deb http://hg.openjdk.java.net/ instead. 这既不起作用,也不能仅添加deb http://hg.openjdk.java.net/ So I guess at this point what I need is the correct url to use in order to download openjdk-7-jre what do I need to add to the sources.list file to download the repo. 因此,我想在这一点上,我需要的是用于下载openjdk-7-jre的正确URL,我需要添加到sources.list文件中的内容才能下载回购。 I have tried several different suggestions found online and they don't work. 我尝试了几种在网上找到的不同建议,但它们不起作用。

尝试使用源列表生成器并更改您的源列表,但是无论如何都要将您拥有的信息复制到另一个文件中,以免丢失该站点,例如http://debgen.simplylinux.ch/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM