package tomcat7 (not installed) failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
every time I install tomcat7/tomcat8, it shows this error:
Creating config file /etc/default/
正在添加系统用户"tomcat7" (UID 121)...
正在将新用户"tomcat7" (UID 121)添加到组"
无法创建主目录"
Creating config file /etc/logrotate.
Job for tomcat7.service failed because the control process exited with error code. See "systemctl status tomcat7.service" and "journalctl -xe" for details.
invoke-rc.d: initscript tomcat7, action "start" failed.
dpkg: 处理软件包 tomcat7 (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 authbind (2.1.1+nmu1) ...
正在处理用于 systemd (229-4ubuntu7) 的触发器 ...
正在处理用于 ureadahead (0.100.0-19) 的触发器 ...
在处理时有错误发生:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: tomcat7 (not installed)
ProcVersionSign
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sat Sep 10 00:51:59 2016
ErrorMessage: 子进程 已安装 post-installation 脚本 返回错误状态 1
InstallationDate: Installed on 2016-08-28 (12 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RelatedPackageV
dpkg 1.18.4ubuntu1.1
apt 1.2.12~
SourcePackage: tomcat7
Title: package tomcat7 (not installed) failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
UpgradeStatus: No upgrade log present (probably fresh install)
Hi,
thank you for reporting the bug and help making Ubuntu better.
I just reran the installation and it worked fine, so I have to assume it has something to do with the local config.
I wonder if that might be related to any sort of old config still being around?
You could take a look with "dpkg -l tomcat7" if it is in rc state and if you want purge it to get rid of the old config.
Also I couldn't found anything in the autoattached log, could you have a look and attach systemctl status tomcat7.service" and "journalctl -xe"?