2016-01-22 55 views
1

我想我的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)

我該如何解決我的依賴關係問題?

回答

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 
+0

見jessie-更新上面/下面的答案 - 盲目安裝一個deb可能會工作,但你很可能會錯過未來的更新或有其他問題.... –

0

你可能從你的/etc/apt/sources.list缺少傑西 - 更新 - 嘗試添加:

deb http://httpredir.debian.org/debian jessie-updates main 

和apt-get更新等

+0

我有這在我的sources.list:'deb http:/ /ftp.fr.debian.org/debian/ stable-updates main contrib non-free',這可能不是原因。無論如何,感謝您的答案:-) –

+0

我可以添加一個無意義的:「我有什麼似乎是同樣的問題,它修復了我....(由缺少tzdata-java包打破依賴)」。 順便說一句,tzdata和tzdata-java軟件包的Jessie版本是201 ** 6 ** f-0 + ...。 –

相關問題