Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tomcat 7 installation on ubuntu 12.04LTS

Tags:

ubuntu

tomcat

I recently upgraded to Ubuntu 12.04LTS and installing Tomcat 7 but got following errors:

root@me:/# 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.

Please help me to solve this problem.

like image 400
Ameet Avatar asked Nov 22 '12 05:11

Ameet


2 Answers

Apparently you need to remove tomcat6-common before installing tomcat7 due to some conflict.

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

like image 127
Olivier.Roger Avatar answered Oct 20 '22 02:10

Olivier.Roger


You can better download the package from here and unpack it and use it.

like image 31
Shamis Shukoor Avatar answered Oct 20 '22 04:10

Shamis Shukoor