我想在我的debian服务器上安装一个JRE(一个sheevaplug)并得到了这个:
$ sudo apt-get install default-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
default-jre : Depends: default-jre-headless (= 2:1.7-52) but it is not going to be installed
Depends: openjdk-7-jre (>= 7~u3-2.1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我缩小了使用tzdata包的问题。
已安装的版本为 wheezy 版本(2015g-0 + deb7u1),而非 jessie 版本(2015f-0 + deb8u1)。
服务器已有几年的历史了,已经从挤压升级到喘息,再升级到杰西。
由于某种原因,包从未升级过。 (可能是因为wheezy包是版本2015g,而jessie是"只有" 2015f)
如何解决我的依赖问题?
答案 0 :(得分:0)
从Debian下载软件包并使用dpkg手动安装后,我设法安装了JRE。
wget http://ftp.fr.debian.org/debian/pool/main/t/tzdata/tzdata_2015f-0+deb8u1_all.deb
sudo dpkg -i tzdata_2015f-0+deb8u1_all.deb
sudo apt-get install default-jre