Apt-get 总是触发 tomcat 的“设置”

Apt-get 总是触发 tomcat 的“设置”

为了安装特定版本的 tomcat,我需要做一些麻烦,因此执行了几个指南的命令。现在,每次我使用任何 apt-get 或 dpkg 命令时,tomcat 都会开始设置并导致整个安装过程失败。

例子:

$ sudo dpkg --configure -a
Setting up tomcat8 (8.0.32-1ubuntu1.4) ...
Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.
invoke-rc.d: initscript tomcat8, action "start" failed.
● tomcat8.service - LSB: Start Tomcat.
   <snip>
Errors were encountered while processing:
 tomcat8

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic linux-image-extra-4.4.0-97-generic
  linux-image-extra-4.4.0-98-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up tomcat8 (8.0.32-1ubuntu1.4) ...
<snip>
Errors were encountered while processing:
 tomcat8
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

任何通常可以修复我的软件包的操作都会触发此问题。有人知道这是由什么原因造成的以及如何修复它吗?

先感谢您,

CX

答案1

我已经修复了自己的问题。我首先重新启动进入恢复模式,随后选择了“修复软件包”选项。它确实出错了,恢复让我陷入了无限的启动循环,但它仍然修复了足够的问题,让我可以正常使用软件包管理器。

相关内容