package tomcat7 (not installed) failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1

Bug #1622109 reported by ikirin1979 on 2016-09-10
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tomcat7 (Ubuntu)
Undecided
Unassigned

Bug Description

every time I install tomcat7/tomcat8, it shows this error:

Creating config file /etc/default/tomcat7 with new version
正在添加系统用户"tomcat7" (UID 121)...
正在将新用户"tomcat7" (UID 121)添加到组"tomcat7"...
无法创建主目录"/usr/share/tomcat7"

Creating config file /etc/logrotate.d/tomcat7 with new version
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)
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
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)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: tomcat7
Title: package tomcat7 (not installed) failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
UpgradeStatus: No upgrade log present (probably fresh install)

ikirin1979 (ikirin1979) wrote :

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"?

Changed in tomcat7 (Ubuntu):
status: New → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for tomcat7 (Ubuntu) because there has been no activity for 60 days.]

Changed in tomcat7 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers