Trouser installation for tpm emulator

I have successfully installed the tpm emulator. I get this error

* Starting Trusted Computing daemon tcsd    /etc/init.d/trousers: 32: [: /dev/tpm: unexpected operator [fail]
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
 subprocess installed post-installation script returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)

while doing

sudo apt-get install tpm-tools libtspi-dev
+4
source share
1 answer

The answer to this particular error message is a broken line in this script /etc/init.d/trousers.

Offensive line 32:

31:
32: if [ ! -e /dev/tpm* ]
33: then

expands to:

if [ ! -e /dev/tpm /dev/tpm0 ]

This causes an error. Changing this line to something like:

31:
32: if [ ! -e /dev/tpm ] && [ ! -e /dev/tpm0 ]
33: then

should at least do the script work.

0
source

All Articles