首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法删除tomcat7

无法删除tomcat7
EN

Ask Ubuntu用户
提问于 2016-12-08 15:58:23
回答 1查看 2.9K关注 0票数 1

我无法从我的Ubuntu15.04中完全删除tomcat7。我错误地从文件管理器中删除了它的var/lib/dpkg/info/tomcat7配置文件。但是现在,当我试图使用apt-get remove删除这个包时,甚至通过synaptic管理器,我得到了这个错误:

代码语言:javascript
复制
(synaptic:9062): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 399913 files and directories currently installed.)
Removing tomcat7 (7.0.56-2ubuntu0.1) ...
/var/lib/dpkg/info/tomcat7.prerm: 1: /etc/default/tomcat7: Run: not found
dpkg: error processing package tomcat7 (--purge):
 subprocess installed pre-removal script returned error exit status 127
dpkg: tomcat7-common: dependency problems, but removing anyway as you requested:
 tomcat7 depends on tomcat7-common (>= 7.0.56-2ubuntu0.1).

Removing tomcat7-common (7.0.56-2ubuntu0.1) ...
Errors were encountered while processing:
 tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-12-08 19:35:35

您混淆了包管理系统。您应该重新安装tomcat7,使用:

代码语言:javascript
复制
sudo apt-get install --reinstall tomcat7

然后,当文件系统内容和包管理系统达成一致时,

代码语言:javascript
复制
sudo apt-get remove tomcat7
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/858471

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档