2012-11-22 16 views
5

Ich habe vor kurzem ein Upgrade auf Ubuntu 12.04LTS und Installation Tomcat 7 bekam aber Fehler folgende:tomcat 7-Installation auf 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. 

Bitte mir helfen, dieses Problem zu lösen.

Antwort

15

Anscheinend müssen Sie tomcat6-common entfernen, bevor Sie Tomcat7 wegen eines Konflikts installieren.

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

+0

Vielen Dank Olivier.Roger, Es war wegen tomcat6-common, – Ameet

+1

Kein Problem, könnten Sie die Antwort akzeptieren, wenn es Ihr Problem gelöst hat? (Siehe http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) –

+1

Man @ Olivier.Roger, das ist ziemlich hart nicht als beste Antwort auf diese eine ausgewählt werden! –

4

Sie können das Paket besser herunterladen von here und entpacken Sie es und verwenden Sie es.