Tomcat 卸载问题

Tomcat 卸载问题

我正在使用“apt-get remove tomcat6”来删除 tomcat。它给出了这个输出,但 tomcat 仍然在我的系统上运行:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  seamonkey-gnome-support ocaml-base-nox libghc6-hsql-prof libgmp3-dev
  libffi-dev libtool libghc6-hsql-dev libgmpxx4ldbl ghc6-prof camlp4 ghc6
  ledit ocaml-interp rhino libltdl-dev ocaml-nox
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  tomcat6 tomcat6-admin tomcat6-examples
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
After this operation, 2,400kB disk space will be freed.
Do you want to continue [Y/n]? y
Segmentation fault
deepak@kalpna-desktop:~$ apt-get remove tomcat6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  seamonkey-gnome-support ocaml-base-nox libghc6-hsql-prof libgmp3-dev
  libffi-dev libtool libghc6-hsql-dev libgmpxx4ldbl ghc6-prof camlp4 ghc6
  ledit ocaml-interp rhino libltdl-dev ocaml-nox
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  tomcat6 tomcat6-admin tomcat6-examples
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
After this operation, 2,400kB disk space will be freed.
Do you want to continue [Y/n]? y
Segmentation fault

在ubuntu上重新安装tomcat的方法是什么。

问候 D

答案1

重新安装的方法通常是

sudo apt-get install --reinstall tomcat6

或者

sudo aptitude reinstall tomcat6

但从输出来看,这可能不起作用。请先尝试停止 tomcat:

sudo /etc/init.d/tomcat6 stop

然后运行上述重新安装命令之一

相关内容