简体   繁体   中英

Installing openjdk7-jre on debian squeeze server

I am trying to update a server to use openjdk-7-jre using

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

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. 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. I have tried several different suggestions found online and they don't work.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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