我想我的Debian服務器(的SheevaPlug)上安裝了JRE並且得到這個:傑西:無法安裝Java由於錯誤的tzdata版本
$ 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包。
安裝的版本是喘鳴版本(2015克-0 + deb7u1)代替傑西版本(2015f-0 + deb8u1)。
服務器已經幾年了,並已從擠壓升級到喘息,然後升級到傑西。
出於某種原因,該包從未升級過。 (可能是因爲wheezy包是2015g版,而jessie是「only」2015f)
我該如何解決我的依賴關係問題?
見jessie-更新上面/下面的答案 - 盲目安裝一個deb可能會工作,但你很可能會錯過未來的更新或有其他問題.... –