gpt4 book ai didi

ubuntu - tomcat7安装错误

转载 作者:行者123 更新时间:2023-12-04 19:02:14 27 4
gpt4 key购买 nike

当我尝试在 ubuntu 15.10 上安装 tomcat 7 时,它显示以下错误。我重新安装了 3 次以上的 tomcat7 但它仍然显示相同的错误

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
authbind libcommons-collections3-java libcommons-dbcp-java
libcommons-pool-java libecj-java libservlet3.0-java libtomcat7-java
tomcat7-common
Suggested packages:
libcommons-collections3-java-doc libcommons-dbcp-java-doc
libgeronimo-jta-1.1-spec-java ecj ant libecj-java-gcj tomcat7-docs
tomcat7-admin tomcat7-examples tomcat7-user libtcnative-1
The following NEW packages will be installed:
authbind libcommons-collections3-java libcommons-dbcp-java
libcommons-pool-java libecj-java libservlet3.0-java libtomcat7-java tomcat7
tomcat7-common
0 upgraded, 9 newly installed, 0 to remove and 244 not upgraded.
Need to get 0 B/6,782 kB of archives.
After this operation, 8,286 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libcommons-collections3-java.
(Reading database ... 208809 files and directories currently installed.)


Preparing to unpack .../libcommons-collections3-java_3.2.1-8_all.deb ...
Unpacking libcommons-collections3-java (3.2.1-8) ...
Selecting previously unselected package libcommons-pool-java.
Preparing to unpack .../libcommons-pool-java_1.6-2_all.deb ...
Unpacking libcommons-pool-java (1.6-2) ...
Selecting previously unselected package libcommons-dbcp-java.
Preparing to unpack .../libcommons-dbcp-java_1.4-5ubuntu1_all.deb ...
Unpacking libcommons-dbcp-java (1.4-5ubuntu1) ...
Selecting previously unselected package libecj-java.
Preparing to unpack .../libecj-java_3.10.1-2_all.deb ...
Unpacking libecj-java (3.10.1-2) ...
Selecting previously unselected package libservlet3.0-java.
Preparing to unpack .../libservlet3.0-java_7.0.64-1_all.deb ...
Unpacking libservlet3.0-java (7.0.64-1) ...
Selecting previously unselected package libtomcat7-java.
Preparing to unpack .../libtomcat7-java_7.0.64-1_all.deb ...
Unpacking libtomcat7-java (7.0.64-1) ...
Selecting previously unselected package tomcat7-common.
Preparing to unpack .../tomcat7-common_7.0.64-1_all.deb ...
Unpacking tomcat7-common (7.0.64-1) ...
Selecting previously unselected package tomcat7.
Preparing to unpack .../tomcat7_7.0.64-1_all.deb ...
Unpacking tomcat7 (7.0.64-1) ...
Selecting previously unselected package authbind.
Preparing to unpack .../authbind_2.1.1+nmu1_amd64.deb ...
Unpacking authbind (2.1.1+nmu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (225-1ubuntu9) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up libcommons-collections3-java (3.2.1-8) ...
Setting up libcommons-pool-java (1.6-2) ...
Setting up libcommons-dbcp-java (1.4-5ubuntu1) ...
Setting up libecj-java (3.10.1-2) ...
Setting up libservlet3.0-java (7.0.64-1) ...
Setting up libtomcat7-java (7.0.64-1) ...
Setting up tomcat7-common (7.0.64-1) ...
Setting up tomcat7 (7.0.64-1) ...


* Starting Tomcat servlet engine tomcat7 cat: /var/lib/tomcat7/conf/policy.d/*.policy: No such file or directory
invoke-rc.d: initscript tomcat7, action "start" failed.
dpkg: error processing package tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up authbind (2.1.1+nmu1) ...
Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)

请任何人帮我安装tomcat7。

最佳答案

您的包管理器似乎有一些问题,这可能是由于源损坏。你能安装其他包吗?您正在运行什么样的操作系统?

uname -a 

你也可以尝试运行这个:
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

在 dist 升级后,我可以建议您重新启动服务器。重启后尝试运行 sudo apt-get install tomcat7
祝你好运!

关于ubuntu - tomcat7安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36996358/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com