2012-11-22 63 views
5

我最近升級到Ubuntu的12.04LTS和安裝Tomcat的卻得到了以下錯誤:的Tomcat 7的安裝ubuntu上12.04LTS

[email protected]:/# sudo apt-get install tomcat7 tomcat7-docs tomcat7-examples tomcat7-admin -y 
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: 
tomcat7 : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed 
tomcat7-admin : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed 
tomcat7-docs : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed 
tomcat7-examples : Depends: tomcat7-common (>= 7.0.26-1ubuntu1.1) but it is not going to be installed 
E: Unable to correct problems, you have held broken packages. 

請幫我解決這個問題。

回答

15

顯然你需要在安裝tomcat7之前刪除tomcat6-common由於一些衝突。

請參閱https://askubuntu.com/questions/173981/installing-tomcat-7-on-ubuntu-server-12-04

+0

謝謝Olivier.Roger, 這是因爲tomcat6-common, – Ameet

+1

沒問題,如果能解決你的問題,你能接受嗎? (見http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) –

+1

Man @ Olivier.Roger這是非常苛刻的沒有被選爲最佳答案在這一個! –

4

您可以從here下載該軟件包並將其解壓並使用。