我正在尝试使用
更新服务器以使用openjdk-7-jreapt-get install openjdk-7-jre
这会返回此信息。
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正在从名为/etc/apt/sources.list
的文件中读取在这个文件中,我有。
# 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
这不起作用,也不只是添加deb http://hg.openjdk.java.net/。所以我想在这一点上我需要的是正确的url,以便下载openjdk-7-jre我需要添加到sources.list文件以下载repo。我已尝试在网上找到几个不同的建议,但它们不起作用。
答案 0 :(得分:-1)
尝试源列表生成器并更改您的sourceslist,但无论如何都要复制您在另一个文件中的信息,以免丢失 此网站例如http://debgen.simplylinux.ch/