首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装tomcat7时出错

安装tomcat7时出错
EN

Ask Ubuntu用户
提问于 2016-01-22 10:49:43
回答 1查看 2.4K关注 0票数 3

我正在尝试在ubuntu14.04上使用

$sudo apt-get install tomcat7,但是它给出了一个错误

代码语言:javascript
复制
The following NEW packages will be installed:
  tomcat7
0 upgraded, 1 newly installed, 0 to remove and 555 not upgraded.
Need to get 0 B/35.6 kB of archives.
After this operation, 374 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package tomcat7.
(Reading database ... 221751 files and directories currently installed.)
Preparing to unpack .../tomcat7_7.0.52-1ubuntu0.3_all.deb ...
Unpacking tomcat7 (7.0.52-1ubuntu0.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up tomcat7 (7.0.52-1ubuntu0.3) ...
chmod: cannot access ‘/etc/tomcat7/tomcat-users.xml’: No such file or directory
dpkg: error processing package tomcat7 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果我做错了什么,请纠正我?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-01-22 12:35:21

删除此文件:/etc/tomcat7/tomcat-users.xml,重新启动系统并运行以下命令

代码语言:javascript
复制
 sudo apt-get update 

然后

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

https://askubuntu.com/questions/724180

复制
相关文章

相似问题

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