package trousers 0.3.7-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 137
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trousers (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Trousers users need to reboot (or restart udev) in order to fully complete configuration of the package. Worse, the install fails and prompts to open this bug with apport.
[Fix]
First, the problem. Though udev watches their rules files and re-reads them whenever something new is added, it does _not_ monitor when new users are groups are added to the system. We're left with:
Jul 31 21:21:46 neptune udevd[409]: specified user 'tss' unknown
Jul 31 21:21:46 neptune udevd[409]: specified group 'tss' unknown
The fix is to explicitly restart udev. This causes udev to reread users and groups and allows the initscript to start.
[Test Case]
1) make sure there is no tss user/group
2) apt-get install tpm-tools
[Regression Potential]
Very small. udevadm control --reload-rules is a benign command and we have it in other packages already.
[Original Report]
Setting up trousers (0.3.7-2ubuntu1) ...
Adding system user `tss' (UID 118) ...
Adding new group `tss' (GID 129) ...
Adding new user `tss' (UID 118) with group `tss' ...
Not creating home directory `/var/lib/tpm'.
* Starting Trusted Computing daemon tcsd [fail]
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
subprocess installed post-installation script returned error exit status 137
No apport report written because MaxReports is reached already
tpm-tools depends on trousers; however:
Package trousers is not configured yet.
dpkg: error processing tpm-tools (--configure):
dependency problems - leaving unconfigured
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: trousers 0.3.7-2ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Mon Mar 19 16:16:56 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 137
SourcePackage: trousers
Title: package trousers 0.3.7-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 137
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Brian Murray: Approve
- Ubuntu branches: Pending requested
-
Diff: 24 lines (+7/-0)2 files modifieddebian/changelog (+6/-0)
debian/trousers.postinst (+1/-0)
tags: | removed: need-duplicate-check |
Changed in trousers (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
Changed in trousers (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | removed: rls-q-incoming |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
** 2nd Installation Attempt with debug packages selected **
Selecting previously unselected package libopencryptoki -dev. toki-dev_ 2.3.1+dfsg- 3ubuntu2_ amd64.deb) ... dev_1%3a1. 2.3.4.dfsg- 3ubuntu4_ amd64.deb) ... dev_1.0. 0g-1ubuntu1_ amd64.deb) ... doc_1.0. 0g-1ubuntu1_ all.deb) ... dev_0.3. 7-2ubuntu1_ amd64.deb) ... i-dbg_2. 3.1+dfsg- 3ubuntu2_ amd64.deb) ... dbg_0.3. 7-2ubuntu1_ amd64.deb) ... dfsg-3ubuntu2) ... 3.4.dfsg- 3ubuntu4) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libssl-dev (1.0.0g-1ubuntu1) ... dfsg-3ubuntu2) ...
Errors were encountered while processing:
(Reading database ... 345311 files and directories currently installed.)
Unpacking libopencryptoki-dev (from .../libopencryp
Selecting previously unselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-
Selecting previously unselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-
Selecting previously unselected package libtspi-dev.
Unpacking libtspi-dev (from .../libtspi-
Selecting previously unselected package opencryptoki-dbg.
Unpacking opencryptoki-dbg (from .../opencryptok
Selecting previously unselected package trousers-dbg.
Unpacking trousers-dbg (from .../trousers-
Processing triggers for man-db ...
Setting up trousers (0.3.7-2ubuntu1) ...
The system user `tss' already exists. Exiting.
* Starting Trusted Computing daemon tcsd [fail]
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
subprocess installed post-installation script returned error exit status 137
dpkg: dependency problems prevent configuration of tpm-tools:
tpm-tools depends on trousers; however:
Package trousers is not configured yet.
dpkg: error processing tpm-tools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tpm-tools-dbg:
tpm-tools-dbg depends on tpm-tools (= 1.3.7-1); however:
Package tpm-tools is not configured yet.
dpkg: error processing tpm-tools-dbg (--configure):
dependency problems - leaving unconfigured
Setting up libopencryptoki-dev (2.3.1+
Setting up zlib1g-dev (1:1.2.
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libssl-doc (1.0.0g-1ubuntu1) ...
Setting up libtspi-dev (0.3.7-2ubuntu1) ...
Setting up opencryptoki-dbg (2.3.1+
dpkg: dependency problems prevent configuration of trousers-dbg:
trousers-dbg depends on trousers (= 0.3.7-2ubuntu1); however:
Package trousers is not configured yet.
dpkg: error processing trousers-dbg (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
trousers
tpm-tools
tpm-tools-dbg
trousers-dbg
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up trousers (0.3.7-2ubuntu1) ...
The system use...