4

我已经成功安装了 tpm 模拟器。我收到这个错误

* 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)

执行时

sudo apt-get install tpm-tools libtspi-dev
4

1 回答 1

0

该特定错误消息的答案是给定脚本中的虚线/etc/init.d/trousers

违规行32:

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

扩展为:

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

这会引发错误。将该行更改为:

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

至少应该使脚本工作。

于 2016-01-10T15:08:43.720 回答